From 6887afdb2c71429fa032d68f2ee3a4a075ecca1d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 2 Sep 2021 13:47:34 +0700 Subject: Remove unnecessary `mut self` in `Command::map` --- web/src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/src') 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, { -- cgit