Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Jul 20, 2023
1 parent 1a75a13 commit 6758525
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions core/tauri/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ impl<R: Runtime> Builder<R> {
/// ```
#[must_use]
pub fn menu_with<F: FnOnce(&Config) -> 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
}
Expand Down Expand Up @@ -1624,7 +1624,7 @@ fn on_event_loop_event<R: Runtime, F: FnMut(&AppHandle<R>, RunEvent) + 'static>(
.lock()
.unwrap()
{
listener(&app_handle, e)
listener(app_handle, e)
}
for (label, listener) in &*app_handle
.manager
Expand All @@ -1647,7 +1647,7 @@ fn on_event_loop_event<R: Runtime, F: FnMut(&AppHandle<R>, RunEvent) + 'static>(
.lock()
.unwrap()
{
listener(&app_handle, e)
listener(app_handle, e)
}
RunEvent::TrayIconEvent(e)
}
Expand Down
2 changes: 1 addition & 1 deletion core/tauri/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ impl<R: Runtime> Clone for WindowManager<R> {
}

impl<R: Runtime> WindowManager<R> {
#[allow(clippy::too_many_arguments)]
#[allow(clippy::too_many_arguments, clippy::type_complexity)]
pub(crate) fn with_handlers(
#[allow(unused_mut)] mut context: Context<impl Assets>,
plugins: PluginStore<R>,
Expand Down
2 changes: 1 addition & 1 deletion core/tauri/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ impl<R: Runtime> Window<R> {
/// });
/// }
/// ```
#[cfg(all(feature = "wry"))]
#[cfg(feature = "wry")]
#[cfg_attr(doc_cfg, doc(all(feature = "wry")))]
pub fn with_webview<F: FnOnce(PlatformWebview) + Send + 'static>(
&self,
Expand Down

0 comments on commit 6758525

Please sign in to comment.