Explorar o código

fix: dont panic in panic test

Jonathan Kelley %!s(int64=2) %!d(string=hai) anos
pai
achega
18157eeed1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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}" }