diff --git a/web/src/command.rs b/web/src/command.rs index 606097de..ff6965c1 100644 --- a/web/src/command.rs +++ b/web/src/command.rs @@ -33,7 +33,7 @@ impl Command { /// Applies a transformation to the result of a [`Command`]. #[cfg(target_arch = "wasm32")] - pub fn map(mut self, f: impl Fn(T) -> A + 'static + Clone) -> Command + pub fn map(self, f: impl Fn(T) -> A + 'static + Clone) -> Command where T: 'static, {