From 8679656d169d49bac5b0a1c8ec524527ebfb49d2 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Fri, 5 Jan 2024 23:59:44 -0800 Subject: [PATCH] fix ios build of desktop --- packages/desktop/src/menubar.rs | 1 + packages/desktop/src/mobile_shortcut.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/desktop/src/menubar.rs b/packages/desktop/src/menubar.rs index d6a99313b..d51a17dff 100644 --- a/packages/desktop/src/menubar.rs +++ b/packages/desktop/src/menubar.rs @@ -1,5 +1,6 @@ use tao::window::Window; +#[allow(unused)] pub fn build_menu(window: &Window, default_menu_bar: bool) { if default_menu_bar { #[cfg(not(any(target_os = "ios", target_os = "android")))] diff --git a/packages/desktop/src/mobile_shortcut.rs b/packages/desktop/src/mobile_shortcut.rs index dbd619b11..03566bf36 100644 --- a/packages/desktop/src/mobile_shortcut.rs +++ b/packages/desktop/src/mobile_shortcut.rs @@ -37,15 +37,15 @@ impl GlobalHotKeyManager { Ok(Self()) } - pub fn register(&mut self, accelerator: HotKey) -> Result { + pub fn register(&self, accelerator: HotKey) -> Result { Ok(HotKey) } - pub fn unregister(&mut self, id: HotKey) -> Result<(), HotkeyError> { + pub fn unregister(&self, id: HotKey) -> Result<(), HotkeyError> { Ok(()) } - pub fn unregister_all(&mut self, _: &[HotKey]) -> Result<(), HotkeyError> { + pub fn unregister_all(&self, _: &[HotKey]) -> Result<(), HotkeyError> { Ok(()) } }