mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-04 04:01:03 +02:00
refactor: fix casting based clippy warnings
This commit is contained in:
parent
bea442ed96
commit
e847a84c21
3 changed files with 4 additions and 4 deletions
|
@ -460,7 +460,7 @@ impl Module<Button> for MusicModule {
|
|||
btn_next.set_sensitive(enable_next);
|
||||
|
||||
if let Some(volume) = update.status.volume_percent {
|
||||
volume_slider.set_value(volume as f64);
|
||||
volume_slider.set_value(f64::from(volume));
|
||||
volume_box.show();
|
||||
} else {
|
||||
volume_box.hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue