From 98cb611cdd35c59e10d57130d33aed6c656e5f16 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Wed, 25 Sep 2024 11:04:29 +1000 Subject: [PATCH] fix needless borrows --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 89a7476..ca9bb03 100644 --- a/src/main.rs +++ b/src/main.rs @@ -190,7 +190,7 @@ async fn code_trigger + std::cmp::PartialEq>( if workspace.focused { let width = workspace.rect.width; - let mut workspace = get_with_id(&tree, workspace.id)?; + let mut workspace = get_with_id(tree, workspace.id)?; if workspace .output .as_ref() @@ -213,8 +213,8 @@ async fn code_trigger + std::cmp::PartialEq>( && workspace.focus.len() == 2 { let (code, other) = { - let a = get_with_id(&tree, workspace.focus[0])?; - let b = get_with_id(&tree, workspace.focus[1])?; + let a = get_with_id(tree, workspace.focus[0])?; + let b = get_with_id(tree, workspace.focus[1])?; if contains_child(a, id) { (a, b) } else {