Slight cleanup

This commit is contained in:
Kenny Levinsen
2019-08-01 11:07:33 +02:00
parent 14a1611e9e
commit 9ac29b2a94
3 changed files with 7 additions and 17 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ pub fn draw_bar(
) -> Result<(), ::std::io::Error> {
let mut buf = buf.subdimensions((0, 0, length, height));
let mut fill_pos = (((length as f32) * fill) as u32);
let mut fill_pos = ((length as f32) * fill) as u32;
if fill_pos > length {
fill_pos = length;
}