From ceda547c682624ca8fa381656ad2d996a7245c26 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 5 Feb 2021 14:25:21 -0800 Subject: [PATCH] Bump peekable_next_if to rust 1.51.0 --- library/core/src/iter/adapters/peekable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/core/src/iter/adapters/peekable.rs b/library/core/src/iter/adapters/peekable.rs index d087690bd284a..43301444e3e2c 100644 --- a/library/core/src/iter/adapters/peekable.rs +++ b/library/core/src/iter/adapters/peekable.rs @@ -282,7 +282,7 @@ impl Peekable { /// // The next value returned will be 10 /// assert_eq!(iter.next(), Some(10)); /// ``` - #[stable(feature = "peekable_next_if", since = "1.50.0")] + #[stable(feature = "peekable_next_if", since = "1.51.0")] pub fn next_if(&mut self, func: impl FnOnce(&I::Item) -> bool) -> Option { match self.next() { Some(matched) if func(&matched) => Some(matched), @@ -308,7 +308,7 @@ impl Peekable { /// // `next_if_eq` saves the value of the next item if it was not equal to `expected`. /// assert_eq!(iter.next(), Some(1)); /// ``` - #[stable(feature = "peekable_next_if", since = "1.50.0")] + #[stable(feature = "peekable_next_if", since = "1.51.0")] pub fn next_if_eq(&mut self, expected: &T) -> Option where T: ?Sized,