make return type for closure explicit

This commit is contained in:
YK 2025-09-13 12:47:16 +03:00
parent 1c0c0a2b5f
commit 697e7db055

View File

@ -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.))
}; };