From 006e6b1bc7d2372e1c2dc9d62b830c8644dd58e2 Mon Sep 17 00:00:00 2001 From: Jovansonlee Cesar Date: Sun, 14 Apr 2024 18:10:40 +0800 Subject: [PATCH] fix: warning error --- crates/core/src/dom/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/dom/window.rs b/crates/core/src/dom/window.rs index ffca076c..1ba29f6f 100644 --- a/crates/core/src/dom/window.rs +++ b/crates/core/src/dom/window.rs @@ -17,7 +17,7 @@ impl Window { { let (mut tx, rx) = mpsc::unbounded(); let resize_callback: Closure = - Closure::new(move |e: web_sys::Event| { + Closure::new(move |_e: web_sys::Event| { let (w, h) = util::get_window_size(); let msg = cb(w, h); tx.start_send(msg).expect("send");