Skip to content

Commit dae1501

Browse files
Fix clippy warnings
1 parent 248b839 commit dae1501

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ fn pretty_windows(config: &Config, windows: &[Window]) -> String {
7272
let mut set = HashSet::new();
7373
for window in windows {
7474
let icon = pretty_window(config, window);
75-
if set.get(&icon).is_none() {
75+
if !set.contains(&icon) {
7676
s.push_str(&icon);
7777
s.push(' ');
7878
set.insert(icon);

src/window_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl WM for SwayOrI3 {
313313
}
314314
for result in self
315315
.connection
316-
.run_command(&format!("rename workspace \"{old}\" to \"{new}\"",))
316+
.run_command(format!("rename workspace \"{old}\" to \"{new}\"",))
317317
.context("Failed to rename the workspace")?
318318
{
319319
result.context("Failed to rename the workspace")?;

0 commit comments

Comments
 (0)