also clippy
This commit is contained in:
parent
2557e9e897
commit
38d331fcd8
@ -228,8 +228,7 @@ fn vnc_out_handler(ws: &WebSocket, vnc: &Vnc) {
|
||||
|
||||
let handler = Box::new(refresh) as Box<dyn FnMut()>;
|
||||
|
||||
let cb: wasm_bindgen::prelude::Closure<(dyn FnMut() + 'static)> =
|
||||
Closure::wrap(handler);
|
||||
let cb = Closure::wrap(handler);
|
||||
|
||||
setInterval(&cb, 20);
|
||||
cb.forget();
|
||||
|
Loading…
Reference in New Issue
Block a user