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");