Skip to content

Commit ceda547

Browse files
committed
Bump peekable_next_if to rust 1.51.0
1 parent 34cb4bc commit ceda547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/iter/adapters/peekable.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ impl<I: Iterator> Peekable<I> {
282282
/// // The next value returned will be 10
283283
/// assert_eq!(iter.next(), Some(10));
284284
/// ```
285-
#[stable(feature = "peekable_next_if", since = "1.50.0")]
285+
#[stable(feature = "peekable_next_if", since = "1.51.0")]
286286
pub fn next_if(&mut self, func: impl FnOnce(&I::Item) -> bool) -> Option<I::Item> {
287287
match self.next() {
288288
Some(matched) if func(&matched) => Some(matched),
@@ -308,7 +308,7 @@ impl<I: Iterator> Peekable<I> {
308308
/// // `next_if_eq` saves the value of the next item if it was not equal to `expected`.
309309
/// assert_eq!(iter.next(), Some(1));
310310
/// ```
311-
#[stable(feature = "peekable_next_if", since = "1.50.0")]
311+
#[stable(feature = "peekable_next_if", since = "1.51.0")]
312312
pub fn next_if_eq<T>(&mut self, expected: &T) -> Option<I::Item>
313313
where
314314
T: ?Sized,

0 commit comments

Comments
 (0)