Fix more clippy issues
This commit is contained in:
parent
9b881a9da1
commit
b1d244c6c6
3 changed files with 4 additions and 3 deletions
|
@ -302,7 +302,7 @@ impl SystemWindowTabController {
|
||||||
|
|
||||||
controller
|
controller
|
||||||
.tab_groups
|
.tab_groups
|
||||||
.get(&group_ids[next_idx])
|
.get(group_ids[next_idx])
|
||||||
.and_then(|tabs| {
|
.and_then(|tabs| {
|
||||||
tabs.iter()
|
tabs.iter()
|
||||||
.max_by_key(|tab| tab.last_active_at)
|
.max_by_key(|tab| tab.last_active_at)
|
||||||
|
@ -330,7 +330,7 @@ impl SystemWindowTabController {
|
||||||
|
|
||||||
controller
|
controller
|
||||||
.tab_groups
|
.tab_groups
|
||||||
.get(&group_ids[prev_idx])
|
.get(group_ids[prev_idx])
|
||||||
.and_then(|tabs| {
|
.and_then(|tabs| {
|
||||||
tabs.iter()
|
tabs.iter()
|
||||||
.max_by_key(|tab| tab.last_active_at)
|
.max_by_key(|tab| tab.last_active_at)
|
||||||
|
|
|
@ -770,7 +770,7 @@ impl MacWindow {
|
||||||
native_window.setLevel_(NSNormalWindowLevel);
|
native_window.setLevel_(NSNormalWindowLevel);
|
||||||
native_window.setAcceptsMouseMovedEvents_(YES);
|
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 tabbing_id = NSString::alloc(nil).init_str(tabbing_identifier.as_str());
|
||||||
let _: () = msg_send![native_window, setTabbingIdentifier: tabbing_id];
|
let _: () = msg_send![native_window, setTabbingIdentifier: tabbing_id];
|
||||||
}
|
}
|
||||||
|
|
|
@ -944,6 +944,7 @@ impl Window {
|
||||||
app_id,
|
app_id,
|
||||||
window_min_size,
|
window_min_size,
|
||||||
window_decorations,
|
window_decorations,
|
||||||
|
#[cfg_attr(not(target_os = "macos"), allow(unused_variables))]
|
||||||
tabbing_identifier,
|
tabbing_identifier,
|
||||||
} = options;
|
} = options;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue