diff options
author | 2020-01-16 07:01:25 +0100 | |
---|---|---|
committer | 2020-01-16 07:01:25 +0100 | |
commit | 5de404ddd9484c6e1113697d749524ac79d8c763 (patch) | |
tree | 8d0137c09d38e1f2f7db4cfef16ae6beaeb2d3e7 /core/src/subscription.rs | |
parent | a508b007d8c00e16aaf44b1968b89cf0908c3a51 (diff) | |
download | iced-5de404ddd9484c6e1113697d749524ac79d8c763.tar.gz iced-5de404ddd9484c6e1113697d749524ac79d8c763.tar.bz2 iced-5de404ddd9484c6e1113697d749524ac79d8c763.zip |
Take `IntoIterator` instead of `Iterator`
Diffstat (limited to 'core/src/subscription.rs')
-rw-r--r-- | core/src/subscription.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/subscription.rs b/core/src/subscription.rs index 8de6cae8..d9e7e388 100644 --- a/core/src/subscription.rs +++ b/core/src/subscription.rs @@ -50,10 +50,11 @@ where /// /// [`Subscription`]: struct.Subscription.html pub fn batch( - subscriptions: impl Iterator<Item = Subscription<H, I, O>>, + subscriptions: impl IntoIterator<Item = Subscription<H, I, O>>, ) -> Self { Self { recipes: subscriptions + .into_iter() .flat_map(|subscription| subscription.recipes) .collect(), } |