From 675852526daadfc4adbdb2299999773dbee3ce1d Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 20 Jul 2023 08:10:01 -0300 Subject: [PATCH] lint --- core/tauri/src/app.rs | 6 +++--- core/tauri/src/manager.rs | 2 +- core/tauri/src/window.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/tauri/src/app.rs b/core/tauri/src/app.rs index 415f30ab2a9a..5ce535b8b64d 100644 --- a/core/tauri/src/app.rs +++ b/core/tauri/src/app.rs @@ -1191,7 +1191,7 @@ impl Builder { /// ``` #[must_use] pub fn menu_with Menu + 'static>(mut self, f: F) -> Self { - self.menu_with.replace(Box::new(move |c| f(&c))); + self.menu_with.replace(Box::new(move |c| f(c))); self.menu = None; self } @@ -1624,7 +1624,7 @@ fn on_event_loop_event, RunEvent) + 'static>( .lock() .unwrap() { - listener(&app_handle, e) + listener(app_handle, e) } for (label, listener) in &*app_handle .manager @@ -1647,7 +1647,7 @@ fn on_event_loop_event, RunEvent) + 'static>( .lock() .unwrap() { - listener(&app_handle, e) + listener(app_handle, e) } RunEvent::TrayIconEvent(e) } diff --git a/core/tauri/src/manager.rs b/core/tauri/src/manager.rs index 512b6f7042ca..51b0321d4322 100644 --- a/core/tauri/src/manager.rs +++ b/core/tauri/src/manager.rs @@ -302,7 +302,7 @@ impl Clone for WindowManager { } impl WindowManager { - #[allow(clippy::too_many_arguments)] + #[allow(clippy::too_many_arguments, clippy::type_complexity)] pub(crate) fn with_handlers( #[allow(unused_mut)] mut context: Context, plugins: PluginStore, diff --git a/core/tauri/src/window.rs b/core/tauri/src/window.rs index ba5308f2b89f..94c7dabfff33 100644 --- a/core/tauri/src/window.rs +++ b/core/tauri/src/window.rs @@ -1250,7 +1250,7 @@ impl Window { /// }); /// } /// ``` - #[cfg(all(feature = "wry"))] + #[cfg(feature = "wry")] #[cfg_attr(doc_cfg, doc(all(feature = "wry")))] pub fn with_webview( &self,