Add dyn keyword where necessary

This commit is contained in:
Héctor Ramón Jiménez 2019-07-01 20:23:42 +02:00
parent de120280e3
commit e89674d337
2 changed files with 2 additions and 2 deletions

View file

@ -233,7 +233,7 @@ impl Canvas {
}));
}
fn add_event<E, F>(&self, event_name: &str, mut handler: F) -> Closure<FnMut(E)>
fn add_event<E, F>(&self, event_name: &str, mut handler: F) -> Closure<dyn FnMut(E)>
where
E: 'static + AsRef<web_sys::Event> + wasm_bindgen::convert::FromWasmAbi,
F: 'static + FnMut(E),