mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
fix clippy unused for macos
This commit is contained in:
parent
1b9259619f
commit
c71ce50bcc
2 changed files with 7 additions and 3 deletions
|
@ -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,
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue