mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-18 23:31:04 +02:00
refactor: fix some strict clippy warnings
This commit is contained in:
parent
87a6523367
commit
5136637752
6 changed files with 51 additions and 60 deletions
|
@ -1,7 +1,6 @@
|
|||
use color_eyre::Result;
|
||||
use gtk::prelude::*;
|
||||
use serde::Deserialize;
|
||||
use std::ops::Deref;
|
||||
use tokio::sync::mpsc;
|
||||
|
||||
use super::{Module, ModuleInfo, ModuleParts, ModuleUpdateEvent, WidgetContext};
|
||||
|
@ -183,19 +182,19 @@ impl Module<gtk::Box> for KeysModule {
|
|||
if self.show_caps {
|
||||
caps.add_class("key");
|
||||
caps.add_class("caps");
|
||||
container.add(caps.deref());
|
||||
container.add(&*caps);
|
||||
}
|
||||
|
||||
if self.show_num {
|
||||
num.add_class("key");
|
||||
num.add_class("num");
|
||||
container.add(num.deref());
|
||||
container.add(&*num);
|
||||
}
|
||||
|
||||
if self.show_scroll {
|
||||
scroll.add_class("key");
|
||||
scroll.add_class("scroll");
|
||||
container.add(scroll.deref());
|
||||
container.add(&*scroll);
|
||||
}
|
||||
|
||||
let icons = self.icons;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue