also clippy

This commit is contained in:
Jovi Hsu 2022-09-27 01:08:48 +00:00
parent 2557e9e897
commit 38d331fcd8

View File

@ -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();