From 63f54edf0c4008bb9e4011959863c09e88f4ca77 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 25 Apr 2020 02:29:40 +0200 Subject: Use `Rc` in `Command::map` for Wasm --- futures/src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'futures/src/command.rs') diff --git a/futures/src/command.rs b/futures/src/command.rs index 25acbda0..063e9b68 100644 --- a/futures/src/command.rs +++ b/futures/src/command.rs @@ -85,7 +85,7 @@ impl Command { where T: 'static, { - let f = std::sync::Arc::new(f); + let f = std::rc::Rc::new(f); Command { futures: self -- cgit