make return type for closure explicit
This commit is contained in:
1 parent
1c0c0a2b5f
commit
697e7db055
1 file changed
+1
-1
@@ -51,7 +51,7 @@ pub fn Sidebar () -> impl IntoView {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
let pc_hp = move |a: u16, b: u16| {
|
let pc_hp = move |a: u16, b: u16| -> String {
|
||||||
format!("width: {}%", utils::filled_pc(a, b).min(100.))
|
format!("width: {}%", utils::filled_pc(a, b).min(100.))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user