diff --git a/src/main.rs b/src/main.rs index 8d15eb9..059d8e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,10 +107,10 @@ fn icon_name(volume: Volume) -> String { } fn notify_volume(new_volume: Volume) { - let value = dbg!(match new_volume { + let value = match new_volume { Volume::Muted => 0, - Volume::Percent(new_volume) => volume_to_percent(new_volume), - }); + Volume::Percent(new_volume) => new_volume, + }; Notification::new() .summary("Volume") .icon(icon_name(new_volume).as_str())