From 5de404ddd9484c6e1113697d749524ac79d8c763 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 16 Jan 2020 07:01:25 +0100 Subject: Take `IntoIterator` instead of `Iterator` --- core/src/subscription.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/subscription.rs') 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>, + subscriptions: impl IntoIterator>, ) -> Self { Self { recipes: subscriptions + .into_iter() .flat_map(|subscription| subscription.recipes) .collect(), } -- cgit