Skip to content

Commit

Permalink
refactor: fix new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeStanger committed Mar 19, 2023
1 parent ecdd71a commit 6221f74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/modules/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions src/modules/launcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

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

{
Expand Down

0 comments on commit 6221f74

Please sign in to comment.