Skip to content

Commit 6cb6cc1

Browse files
committed
clippy fix
1 parent fc112fd commit 6cb6cc1

File tree

1 file changed

+1
-2
lines changed
  • utils/zerovec/src/hashmap

1 file changed

+1
-2
lines changed

utils/zerovec/src/hashmap/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ where
192192
(lower, None) => lower,
193193
};
194194

195-
let mut key_hashes = vec![];
196-
key_hashes.reserve(size_hint);
195+
let mut key_hashes = alloc::vec::Vec::with_capacity(size_hint);
197196
let mut keys = K::Container::zvl_with_capacity(size_hint);
198197
let mut values = V::Container::zvl_with_capacity(size_hint);
199198
for (k, v) in iter {

0 commit comments

Comments
 (0)