Przeglądaj źródła

fix: dont panic in panic test

Jonathan Kelley 2 lat temu
rodzic
commit
18157eeed1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/core/tests/bubble_error.rs

+ 1 - 1
packages/core/tests/bubble_error.rs

@@ -9,7 +9,7 @@ fn app(cx: Scope) -> Element {
         _ => unreachable!(),
     };
 
-    let value = raw.parse::<f32>().unwrap();
+    let value = raw.parse::<f32>().unwrap_or(123.123);
 
     cx.render(rsx! {
         div { "hello {value}" }