summaryrefslogtreecommitdiffstats
path: root/futures
diff options
context:
space:
mode:
authorLibravatar Poly <marynczakbartlomiej@gmail.com>2022-07-04 01:17:29 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-09 17:07:38 +0200
commit15f794b7a89efb3299cb85b392ec13af145fb0fd (patch)
tree39d8c740168e4c09e15538451ba7f3899051ad43 /futures
parente053e25d2ccb17f7a162685a106a8bbd915a873f (diff)
downloadiced-15f794b7a89efb3299cb85b392ec13af145fb0fd.tar.gz
iced-15f794b7a89efb3299cb85b392ec13af145fb0fd.tar.bz2
iced-15f794b7a89efb3299cb85b392ec13af145fb0fd.zip
Address Clippy lints
Diffstat (limited to 'futures')
-rw-r--r--futures/src/subscription.rs6
-rw-r--r--futures/src/subscription/tracker.rs2
2 files changed, 2 insertions, 6 deletions
diff --git a/futures/src/subscription.rs b/futures/src/subscription.rs
index 0085886d..0479c63c 100644
--- a/futures/src/subscription.rs
+++ b/futures/src/subscription.rs
@@ -183,11 +183,7 @@ where
let mapper = self.mapper;
- Box::pin(
- self.recipe
- .stream(input)
- .map(move |element| mapper(element)),
- )
+ Box::pin(self.recipe.stream(input).map(mapper))
}
}
diff --git a/futures/src/subscription/tracker.rs b/futures/src/subscription/tracker.rs
index 2cf98284..5717fdb9 100644
--- a/futures/src/subscription/tracker.rs
+++ b/futures/src/subscription/tracker.rs
@@ -127,7 +127,7 @@ where
futures.push(Box::pin(future));
}
- self.subscriptions.retain(|id, _| alive.contains(&id));
+ self.subscriptions.retain(|id, _| alive.contains(id));
futures
}