From e89674d33711713b55e396adab472a38a496dc8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Mon, 1 Jul 2019 20:23:42 +0200 Subject: [PATCH] Add `dyn` keyword where necessary --- src/platform_impl/web/web_sys/canvas.rs | 2 +- src/platform_impl/web/web_sys/timeout.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {