diff --git a/src/modules/custom.rs b/src/modules/custom.rs index ee9a2f7..13af4f0 100644 --- a/src/modules/custom.rs +++ b/src/modules/custom.rs @@ -116,7 +116,7 @@ impl Widget { let mut builder = Label::builder().use_markup(true); if let Some(name) = self.name { - builder = builder.name(&name); + builder = builder.name(name); } let label = builder.build(); @@ -143,7 +143,7 @@ impl Widget { let mut builder = Button::builder(); if let Some(name) = self.name { - builder = builder.name(&name); + builder = builder.name(name); } let button = builder.build(); diff --git a/src/modules/launcher/mod.rs b/src/modules/launcher/mod.rs index 43f905c..50e96ed 100644 --- a/src/modules/launcher/mod.rs +++ b/src/modules/launcher/mod.rs @@ -438,7 +438,7 @@ impl Module for LauncherModule { .into_iter() .map(|(_, win)| { let button = Button::builder() - .label(&clamp(&win.name)) + .label(clamp(&win.name)) .height_request(40) .build(); @@ -468,7 +468,7 @@ impl Module for LauncherModule { if let Some(buttons) = buttons.get_mut(&app_id) { let button = Button::builder() .height_request(40) - .label(&clamp(&win.name)) + .label(clamp(&win.name)) .build(); {