mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 22:31:30 +11:00
Add dyn
keyword where necessary
This commit is contained in:
parent
de120280e3
commit
e89674d337
|
@ -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
|
where
|
||||||
E: 'static + AsRef<web_sys::Event> + wasm_bindgen::convert::FromWasmAbi,
|
E: 'static + AsRef<web_sys::Event> + wasm_bindgen::convert::FromWasmAbi,
|
||||||
F: 'static + FnMut(E),
|
F: 'static + FnMut(E),
|
||||||
|
|
|
@ -5,7 +5,7 @@ use wasm_bindgen::JsCast;
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Timeout {
|
pub struct Timeout {
|
||||||
handle: i32,
|
handle: i32,
|
||||||
_closure: Closure<FnMut()>,
|
_closure: Closure<dyn FnMut()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Timeout {
|
impl Timeout {
|
||||||
|
|
Loading…
Reference in a new issue