fix: dont panic in panic test
This commit is contained in:
1 parent
d3be971f4e
commit
18157eeed1
1 file changed
+1
-1
@@ -9,7 +9,7 @@ fn app(cx: Scope) -> Element {
|
|||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let value = raw.parse::<f32>().unwrap();
|
let value = raw.parse::<f32>().unwrap_or(123.123);
|
||||||
|
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div { "hello {value}" }
|
div { "hello {value}" }
|
||||||
|
|||||||
Reference in new issue
Block a user