From a39092362ae74741bc6f8a39b1a733d2f45c3ab8 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 2 Oct 2024 08:33:55 -0300 Subject: [PATCH] #[allow(clippy::manual_inspect)] --- crates/tauri-runtime-wry/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/tauri-runtime-wry/src/lib.rs b/crates/tauri-runtime-wry/src/lib.rs index 181abb3c6276..76c4b3200dbd 100644 --- a/crates/tauri-runtime-wry/src/lib.rs +++ b/crates/tauri-runtime-wry/src/lib.rs @@ -2559,6 +2559,7 @@ impl Runtime for Wry { pending, )?; + #[allow(clippy::manual_inspect)] self .context .main_thread @@ -3162,6 +3163,7 @@ fn handle_user_message( let _ = webview.print(); } WebviewMessage::Close => { + #[allow(clippy::manual_inspect)] windows.0.borrow_mut().get_mut(&window_id).map(|window| { if let Some(i) = window.webviews.iter().position(|w| w.id == webview.id) { window.webviews.remove(i); @@ -3372,6 +3374,7 @@ fn handle_user_message( if let Some(window) = window { match handler(&window) { Ok(webview) => { + #[allow(clippy::manual_inspect)] windows.0.borrow_mut().get_mut(&window_id).map(|w| { w.webviews.push(webview); w.has_children.store(true, Ordering::Relaxed);