From b273617f44b22d62b81010b87153abc7c0de1135 Mon Sep 17 00:00:00 2001 From: Alvin Truong Date: Sat, 22 Apr 2023 01:00:48 -0700 Subject: [PATCH] style: cargo +nightly fmt --all --- komorebi/src/process_event.rs | 1 - komorebi/src/window_manager.rs | 9 +++------ komorebic/src/main.rs | 4 ++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index 55c6715c..522cbb63 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -201,7 +201,6 @@ impl WindowManager { let mut already_moved_window_handles = self.already_moved_window_handles.lock(); already_moved_window_handles.remove(&window.hwnd); - } WindowManagerEvent::FocusChange(_, window) => { let workspace = self.focused_workspace_mut()?; diff --git a/komorebi/src/window_manager.rs b/komorebi/src/window_manager.rs index 4811af69..878bf024 100644 --- a/komorebi/src/window_manager.rs +++ b/komorebi/src/window_manager.rs @@ -498,8 +498,7 @@ impl WindowManager { // And all the visible windows (at the top of a container) for window in workspace.visible_windows().into_iter().flatten() { // TODO this function needs some TLC - let mut already_moved_window_handles = - self.already_moved_window_handles.lock(); + let mut already_moved_window_handles = self.already_moved_window_handles.lock(); // If the executable names or titles of any of those windows are in our rules map if let Some((monitor_idx, workspace_idx, apply_on_first_show_only)) = workspace_rules.get(&window.exe()?) @@ -513,8 +512,7 @@ impl WindowManager { *workspace_idx ); - already_moved_window_handles - .insert(window.hwnd); + already_moved_window_handles.insert(window.hwnd); // Create an operation outline and save it for later in the fn to_move.push(EnforceWorkspaceRuleOp { @@ -554,8 +552,7 @@ impl WindowManager { *workspace_idx ); - already_moved_window_handles - .insert(window.hwnd); + already_moved_window_handles.insert(window.hwnd); to_move.push(EnforceWorkspaceRuleOp { hwnd: window.hwnd, origin_monitor_idx: i, diff --git a/komorebic/src/main.rs b/komorebic/src/main.rs index 035103d8..335d56f7 100644 --- a/komorebic/src/main.rs +++ b/komorebic/src/main.rs @@ -525,7 +525,7 @@ struct WorkspaceRule { monitor: usize, /// Workspace index on the specified monitor (zero-indexed) workspace: usize, - #[clap(short,long)] + #[clap(short, long)] /// Only apply once on first app load apply_on_first_show_only: bool, } @@ -538,7 +538,7 @@ struct NamedWorkspaceRule { id: String, /// Name of a workspace workspace: String, - #[clap(short,long)] + #[clap(short, long)] /// Only apply once on first app load apply_on_first_show_only: bool, }