Fix more clippy issues

This commit is contained in:
Gaauwe Rombouts 2025-08-26 20:54:33 +02:00
parent 9b881a9da1
commit b1d244c6c6
No known key found for this signature in database
GPG key ID: 777FCA1154EC0951
3 changed files with 4 additions and 3 deletions

View file

@ -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)

View file

@ -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];
}

View file

@ -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;