From 18369a467650cf570b6971629c26aa9de4c9b14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orhun=20Parmaks=C4=B1z?= Date: Mon, 28 Aug 2023 12:43:50 +0300 Subject: [PATCH] refactor(server): remove unnecessary mut --- zellij-server/src/plugins/wasm_bridge.rs | 2 +- zellij-server/src/screen.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zellij-server/src/plugins/wasm_bridge.rs b/zellij-server/src/plugins/wasm_bridge.rs index 8803922765..7e11d83126 100644 --- a/zellij-server/src/plugins/wasm_bridge.rs +++ b/zellij-server/src/plugins/wasm_bridge.rs @@ -409,7 +409,7 @@ impl WasmBridge { }); } } - for (plugin_id, mut current_size) in self.cached_resizes_for_pending_plugins.iter_mut() { + for (plugin_id, current_size) in self.cached_resizes_for_pending_plugins.iter_mut() { if *plugin_id == pid { current_size.0 = new_rows; current_size.1 = new_columns; diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs index a0e3b300e9..efa9110b88 100644 --- a/zellij-server/src/screen.rs +++ b/zellij-server/src/screen.rs @@ -1732,7 +1732,7 @@ impl Screen { if pane_to_break_is_floating { tab.show_floating_panes(); tab.add_floating_pane(active_pane, active_pane_id, Some(client_id))?; - if let Some(mut already_running_layout) = floating_panes_layout + if let Some(already_running_layout) = floating_panes_layout .iter_mut() .find(|i| i.run == active_pane_run_instruction) {