From ca213922d043a5532d9ab352c0d54bfca7563871 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 5 Feb 2020 04:14:26 +0100 Subject: Drop `Send` in `Command` and `Executor` on Wasm --- futures/src/executor/wasm_bindgen.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'futures/src/executor/wasm_bindgen.rs') diff --git a/futures/src/executor/wasm_bindgen.rs b/futures/src/executor/wasm_bindgen.rs index 69b7c7e2..94d694c8 100644 --- a/futures/src/executor/wasm_bindgen.rs +++ b/futures/src/executor/wasm_bindgen.rs @@ -9,10 +9,7 @@ impl Executor for WasmBindgen { Ok(Self) } - fn spawn( - &self, - future: impl futures::Future + Send + 'static, - ) { + fn spawn(&self, future: impl futures::Future + 'static) { wasm_bindgen_futures::spawn_local(future); } } -- cgit