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 {