Skip to content

Commit

Permalink
#[allow(clippy::manual_inspect)]
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Oct 2, 2024
1 parent 697b18e commit a390923
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/tauri-runtime-wry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2559,6 +2559,7 @@ impl<T: UserEvent> Runtime<T> for Wry<T> {
pending,
)?;

#[allow(clippy::manual_inspect)]
self
.context
.main_thread
Expand Down Expand Up @@ -3162,6 +3163,7 @@ fn handle_user_message<T: UserEvent>(
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);
Expand Down Expand Up @@ -3372,6 +3374,7 @@ fn handle_user_message<T: UserEvent>(
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);
Expand Down

0 comments on commit a390923

Please sign in to comment.