diff --git a/crates/futures/src/lib.rs b/crates/futures/src/lib.rs index 998c6878..dc1b30c7 100644 --- a/crates/futures/src/lib.rs +++ b/crates/futures/src/lib.rs @@ -388,11 +388,11 @@ fn _future_to_promise(future: Box>) -> P /// This function has the same panic behavior as `future_to_promise`. pub fn spawn_local(future: F) where - F: Future + 'static, + F: Future + 'static, { future_to_promise( future - .map(|_| JsValue::undefined()) - .map_err(|_| JsValue::undefined()), + .map(|()| JsValue::undefined()) + .map_err(|()| JsValue::undefined()), ); }