make return type for closure explicit
This commit is contained in:
parent
1c0c0a2b5f
commit
697e7db055
@ -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.))
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user