From 687fc278a7aca25cd6e8a9c9c9115b978b48f7e1 Mon Sep 17 00:00:00 2001 From: Richard Dodd Date: Mon, 7 Jan 2019 14:23:10 +0000 Subject: [PATCH] Revert previous change. --- crates/futures/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()), ); }