fix: dont panic in panic test

This commit is contained in:
Jonathan Kelley committed 2022-12-19 20:10:34 -08:00
1 parent d3be971f4e
commit 18157eeed1
1 file changed
+1 -1
+1 -1
View File
@@ -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}" }