From b1d244c6c60d67ae2e3dba76abeb36cf367d3af9 Mon Sep 17 00:00:00 2001 From: Gaauwe Rombouts Date: Tue, 26 Aug 2025 20:54:33 +0200 Subject: [PATCH] Fix more clippy issues --- crates/gpui/src/app.rs | 4 ++-- crates/gpui/src/platform/mac/window.rs | 2 +- crates/gpui/src/window.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/app.rs b/crates/gpui/src/app.rs index 0728f2e14a..d6f471b3f4 100644 --- a/crates/gpui/src/app.rs +++ b/crates/gpui/src/app.rs @@ -302,7 +302,7 @@ impl SystemWindowTabController { controller .tab_groups - .get(&group_ids[next_idx]) + .get(group_ids[next_idx]) .and_then(|tabs| { tabs.iter() .max_by_key(|tab| tab.last_active_at) @@ -330,7 +330,7 @@ impl SystemWindowTabController { controller .tab_groups - .get(&group_ids[prev_idx]) + .get(group_ids[prev_idx]) .and_then(|tabs| { tabs.iter() .max_by_key(|tab| tab.last_active_at) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index 63e233368d..9a0af28d18 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -770,7 +770,7 @@ impl MacWindow { native_window.setLevel_(NSNormalWindowLevel); native_window.setAcceptsMouseMovedEvents_(YES); - if let Some(tabbing_identifier) = tabbing_identifier.clone() { + if let Some(tabbing_identifier) = tabbing_identifier { let tabbing_id = NSString::alloc(nil).init_str(tabbing_identifier.as_str()); let _: () = msg_send![native_window, setTabbingIdentifier: tabbing_id]; } diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index c365d9101b..6ddb9c83b4 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -944,6 +944,7 @@ impl Window { app_id, window_min_size, window_decorations, + #[cfg_attr(not(target_os = "macos"), allow(unused_variables))] tabbing_identifier, } = options;