1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 14:51:04 +02:00

refactor: fix some pedantic clippy warnings

This commit is contained in:
Jake Stanger 2024-08-14 21:23:28 +01:00
parent 4d30819ff6
commit 04f45ccae1
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
12 changed files with 43 additions and 46 deletions

View file

@ -70,10 +70,10 @@ impl Module<Label> for SwayModeModule {
let on_mode = move |mode: ModeEvent| {
trace!("mode: {:?}", mode);
label.set_use_markup(mode.pango_markup);
if mode.change != "default" {
label.set_markup(&mode.change)
} else {
if mode.change == "default" {
label.set_markup("");
} else {
label.set_markup(&mode.change);
}
};