refactor: fix new clippy warnings

This commit is contained in:
Jake Stanger 2023-03-19 16:20:17 +00:00
parent ecdd71a43d
commit 6221f7454a
No known key found for this signature in database
GPG Key ID: C51FC8F9CB0BEA61
2 changed files with 4 additions and 4 deletions

View File

@ -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();

View File

@ -438,7 +438,7 @@ impl Module<gtk::Box> 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<gtk::Box> 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();
{