mirror of
https://github.com/JakeStanger/ironbar.git
synced 2024-11-26 09:02:26 +03:00
refactor: fix new clippy warnings
This commit is contained in:
parent
ecdd71a43d
commit
6221f7454a
@ -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();
|
||||
|
@ -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();
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user