diff --git a/src/platform_impl/web/web_sys/canvas.rs b/src/platform_impl/web/web_sys/canvas.rs index 6d1dd373..4e435aaf 100644 --- a/src/platform_impl/web/web_sys/canvas.rs +++ b/src/platform_impl/web/web_sys/canvas.rs @@ -233,7 +233,7 @@ impl Canvas { })); } - fn add_event(&self, event_name: &str, mut handler: F) -> Closure + fn add_event(&self, event_name: &str, mut handler: F) -> Closure where E: 'static + AsRef + wasm_bindgen::convert::FromWasmAbi, F: 'static + FnMut(E), diff --git a/src/platform_impl/web/web_sys/timeout.rs b/src/platform_impl/web/web_sys/timeout.rs index 7fe69ab7..e7ce69a0 100644 --- a/src/platform_impl/web/web_sys/timeout.rs +++ b/src/platform_impl/web/web_sys/timeout.rs @@ -5,7 +5,7 @@ use wasm_bindgen::JsCast; #[derive(Debug)] pub struct Timeout { handle: i32, - _closure: Closure, + _closure: Closure, } impl Timeout {