Skip to content

Commit

Permalink
fix: warning error
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Apr 14, 2024
1 parent 83f5bb0 commit 006e6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/dom/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl Window {
{
let (mut tx, rx) = mpsc::unbounded();
let resize_callback: Closure<dyn FnMut(web_sys::Event)> =
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");
Expand Down

0 comments on commit 006e6b1

Please sign in to comment.