Skip to content

Commit f086f1e

Browse files
committed
Bump vecdeque_binary_search stabilization to 1.54.
1 parent f51f277 commit f086f1e

File tree

1 file changed

+3
-3
lines changed
  • library/alloc/src/collections/vec_deque

1 file changed

+3
-3
lines changed

library/alloc/src/collections/vec_deque/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,7 @@ impl<T> VecDeque<T> {
24392439
/// deque.insert(idx, num);
24402440
/// assert_eq!(deque, &[0, 1, 1, 1, 1, 2, 3, 5, 8, 13, 21, 34, 42, 55]);
24412441
/// ```
2442-
#[stable(feature = "vecdeque_binary_search", since = "1.53.0")]
2442+
#[stable(feature = "vecdeque_binary_search", since = "1.54.0")]
24432443
#[inline]
24442444
pub fn binary_search(&self, x: &T) -> Result<usize, usize>
24452445
where
@@ -2484,7 +2484,7 @@ impl<T> VecDeque<T> {
24842484
/// let r = deque.binary_search_by(|x| x.cmp(&1));
24852485
/// assert!(matches!(r, Ok(1..=4)));
24862486
/// ```
2487-
#[stable(feature = "vecdeque_binary_search", since = "1.53.0")]
2487+
#[stable(feature = "vecdeque_binary_search", since = "1.54.0")]
24882488
pub fn binary_search_by<'a, F>(&'a self, mut f: F) -> Result<usize, usize>
24892489
where
24902490
F: FnMut(&'a T) -> Ordering,
@@ -2539,7 +2539,7 @@ impl<T> VecDeque<T> {
25392539
/// let r = deque.binary_search_by_key(&1, |&(a, b)| b);
25402540
/// assert!(matches!(r, Ok(1..=4)));
25412541
/// ```
2542-
#[stable(feature = "vecdeque_binary_search", since = "1.53.0")]
2542+
#[stable(feature = "vecdeque_binary_search", since = "1.54.0")]
25432543
#[inline]
25442544
pub fn binary_search_by_key<'a, B, F>(&'a self, b: &B, mut f: F) -> Result<usize, usize>
25452545
where

0 commit comments

Comments
 (0)