Skip to content

Commit

Permalink
refactor(server): remove unnecessary mut
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Aug 28, 2023
1 parent ac4085d commit 18369a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zellij-server/src/plugins/wasm_bridge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion zellij-server/src/screen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 18369a4

Please sign in to comment.