Skip to content

Commit

Permalink
Update Rust toolchain to 1.74 (#4363)
Browse files Browse the repository at this point in the history
  • Loading branch information
westy92 authored Nov 27, 2023
1 parent 0197253 commit 3df24f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).

[toolchain]
# Version updated on 2023-10-06
channel = "1.73"
# Version updated on 2023-11-24
channel = "1.74"
5 changes: 2 additions & 3 deletions utils/zerovec/src/hashmap/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use crate::map::{MutableZeroVecLike, ZeroMapKV, ZeroVecLike};
use crate::ZeroVec;
use alloc::borrow::Borrow;
use alloc::vec;
use alloc::vec::Vec;
use core::hash::Hash;

pub mod algorithms;
Expand Down Expand Up @@ -192,8 +192,7 @@ where
(lower, None) => lower,
};

let mut key_hashes = vec![];
key_hashes.reserve(size_hint);
let mut key_hashes = Vec::with_capacity(size_hint);
let mut keys = K::Container::zvl_with_capacity(size_hint);
let mut values = V::Container::zvl_with_capacity(size_hint);
for (k, v) in iter {
Expand Down

0 comments on commit 3df24f4

Please sign in to comment.