From cca92edd656af6735e7c792afa9422369457a841 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Wed, 30 Oct 2024 08:56:02 +1100 Subject: [PATCH] clean references --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7863a55..663b21c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -138,10 +138,10 @@ async fn main() -> Res<()> { if parent.node_type == swayipc_async::NodeType::Workspace { break 'ws parent.name.clone(); } - last_node = &parent; + last_node = parent; }; - if !v.is_some_and(|w| w.eq_ignore_ascii_case(&workspace)) { + if !v.is_some_and(|w| w.eq_ignore_ascii_case(workspace)) { // only run the command if we're on a different workspace command_connection .run_command(format!("move container to workspace {workspace}")) @@ -225,7 +225,7 @@ async fn autosplit( } // don't autosplit if we're in fullscreen - if any_parent(&tree, node.id, |n| { + if any_parent(tree, node.id, |n| { (n.node_type == swayipc_async::NodeType::Con || n.node_type == swayipc_async::NodeType::FloatingCon) && n.fullscreen_mode.is_some_and(|m| m != 0)