summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-09-02 13:47:34 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-09-02 13:47:34 +0700
commit6887afdb2c71429fa032d68f2ee3a4a075ecca1d (patch)
tree42498a62124cdc2894a538a2a2d28d21b0910abf /web
parentf0686eae0e421880a047bb83c6d3f62600cf9778 (diff)
downloadiced-6887afdb2c71429fa032d68f2ee3a4a075ecca1d.tar.gz
iced-6887afdb2c71429fa032d68f2ee3a4a075ecca1d.tar.bz2
iced-6887afdb2c71429fa032d68f2ee3a4a075ecca1d.zip
Remove unnecessary `mut self` in `Command::map`
Diffstat (limited to 'web')
-rw-r--r--web/src/command.rs2
1 files changed, 1 insertions, 1 deletions
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<T> Command<T> {
/// Applies a transformation to the result of a [`Command`].
#[cfg(target_arch = "wasm32")]
- pub fn map<A>(mut self, f: impl Fn(T) -> A + 'static + Clone) -> Command<A>
+ pub fn map<A>(self, f: impl Fn(T) -> A + 'static + Clone) -> Command<A>
where
T: 'static,
{