From 8cea829918fc895bff3d30e08e098ebfc376cb4b Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Thu, 16 Sep 2021 20:30:47 +0200 Subject: [PATCH] Fix a clippy warning --- src/layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout.rs b/src/layout.rs index eb21188..212a844 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -139,7 +139,7 @@ pub fn relayout_current_workspace( let mut focused_win = None; for win in &cur_ws.windows { if win.is_focused() { - focused_win.insert(win); + focused_win = Some(win); } if !include_floating && win.is_floating() { continue;