1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-18 07:11:04 +02:00

refactor: fix clippy warnings

This commit is contained in:
Jake Stanger 2024-04-01 16:33:38 +01:00
parent 10b3b01e5b
commit 1b35354272
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 12 additions and 13 deletions

View file

@ -75,7 +75,7 @@ fn default_icon_open_dnd() -> String {
}
impl Icons {
fn icon(&self, value: &swaync::Event) -> &str {
fn icon(&self, value: swaync::Event) -> &str {
match (value.cc_open, value.count > 0, value.dnd) {
(true, _, true) => &self.open_dnd,
(true, true, false) => &self.open_some,
@ -172,7 +172,7 @@ impl Module<Overlay> for NotificationsModule {
let button = button.clone();
glib_recv!(context.subscribe(), ev => {
let icon = self.icons.icon(&ev);
let icon = self.icons.icon(ev);
button.set_label(icon);
label.set_label(&ev.count.to_string());