fix clippy unused for macos

This commit is contained in:
tims 2024-12-16 15:46:13 +05:30
parent 1b9259619f
commit c71ce50bcc
2 changed files with 7 additions and 3 deletions

View file

@ -168,10 +168,12 @@ impl ApplicationMenu {
}) })
} }
#[cfg(not(target_os = "macos"))]
pub fn open_menu(&mut self, action: &OpenApplicationMenu, _cx: &mut ViewContext<Self>) { pub fn open_menu(&mut self, action: &OpenApplicationMenu, _cx: &mut ViewContext<Self>) {
self.pending_menu_open = Some(action.0.clone()); self.pending_menu_open = Some(action.0.clone());
} }
#[cfg(not(target_os = "macos"))]
pub fn navigate_menus_in_direction( pub fn navigate_menus_in_direction(
&mut self, &mut self,
action: &NavigateApplicationMenuInDirection, action: &NavigateApplicationMenuInDirection,

View file

@ -6,9 +6,11 @@ mod window_controls;
#[cfg(feature = "stories")] #[cfg(feature = "stories")]
mod stories; mod stories;
use crate::application_menu::{ use crate::application_menu::ApplicationMenu;
ApplicationMenu, NavigateApplicationMenuInDirection, OpenApplicationMenu,
}; #[cfg(not(target_os = "macos"))]
use crate::application_menu::{NavigateApplicationMenuInDirection, OpenApplicationMenu};
use crate::platforms::{platform_linux, platform_mac, platform_windows}; use crate::platforms::{platform_linux, platform_mac, platform_windows};
use auto_update::AutoUpdateStatus; use auto_update::AutoUpdateStatus;
use call::ActiveCall; use call::ActiveCall;