From 5d7e571994d913320bc96943cb18d4e89a6e8f25 Mon Sep 17 00:00:00 2001 From: mpuchstein Date: Sat, 8 Mar 2025 20:24:46 +0100 Subject: [PATCH] RustRover finally let me remove an unnecessary mut --- hyprman/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprman/src/main.rs b/hyprman/src/main.rs index fb79b74..aa0dc95 100644 --- a/hyprman/src/main.rs +++ b/hyprman/src/main.rs @@ -825,7 +825,7 @@ fn run_workspaces_client(config: &Config) { } let mut workspaces_tmp = workspaces.clone(); workspaces_tmp.sort_by(|a, b| a.id.cmp(&b.id)); - let mut workspace = workspaces_tmp + let workspace = workspaces_tmp .iter_mut() .find(|w| w.id == active_id) .unwrap();