Skip to content

Commit 6577385

Browse files
clippy fixes
1 parent f319a3e commit 6577385

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/extra.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ pub fn get_config(socket: Option<&str>, raw: bool) -> Result<()> {
103103

104104
let sep = if raw { "" } else { "│" };
105105
print_border("┌", "─", "┐");
106-
println!("{sep} {} {sep}", config_str);
106+
println!("{sep} {config_str} {sep}",);
107107

108108
print_border("├", "┬", "┤");
109109
if !raw {
@@ -124,7 +124,7 @@ pub fn get_config(socket: Option<&str>, raw: bool) -> Result<()> {
124124
];
125125

126126
let c = if raw { c } else { color(c) };
127-
println!("{sep} {} {sep} {} {sep} {} {sep}", t, c, o);
127+
println!("{sep} {t} {sep} {c} {sep} {o} {sep}");
128128
}
129129

130130
print_border("└", "┴", "┘");

src/scratchpad.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ impl Scratchpad {
185185
}
186186

187187
fn spawn_special(&self) {
188-
prepare_commands(&self, Some(false)).iter().for_each(|cmd| {
188+
prepare_commands(self, Some(false)).iter().for_each(|cmd| {
189189
hyprland::dispatch!(Exec, &cmd).log_err(file!(), line!());
190190
});
191191
}
@@ -227,7 +227,7 @@ impl Scratchpad {
227227
hide_special(ac);
228228
}
229229

230-
prepare_commands(&self, None).iter().for_each(|cmd| {
230+
prepare_commands(self, None).iter().for_each(|cmd| {
231231
hyprland::dispatch!(Exec, &cmd).log_err(file!(), line!());
232232
});
233233
}

0 commit comments

Comments
 (0)