We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0702579 + c23f524 commit 490eca5Copy full SHA for 490eca5
src/trie_map.rs
@@ -1035,7 +1035,7 @@ impl<T> TrieMap<T> {
1035
}
1036
1037
/// Converts the map into an iterator over key-value pairs.
1038
- pub fn into_iter(mut self) -> impl Iterator<Item = (Vec<u8>, T)> {
+ pub fn into_iter(self) -> impl Iterator<Item = (Vec<u8>, T)> {
1039
let mut keys_indices = Vec::with_capacity(self.size);
1040
let mut current_key = Vec::new();
1041
Self::collect_keys_indices(&self.root, &mut current_key, &mut keys_indices);
0 commit comments