mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 21:00:04 -04:00
Add dyn keyword where necessary
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -5,7 +5,7 @@ use wasm_bindgen::JsCast;
|
||||
#[derive(Debug)]
|
||||
pub struct Timeout {
|
||||
handle: i32,
|
||||
_closure: Closure<FnMut()>,
|
||||
_closure: Closure<dyn FnMut()>,
|
||||
}
|
||||
|
||||
impl Timeout {
|
||||
|
||||
Reference in New Issue
Block a user