Skip to content

Commit 490eca5

Browse files
authored
Merge pull request #1 from steveklabnik/patch-1
Remove unnecessary mut
2 parents 0702579 + c23f524 commit 490eca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/trie_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ impl<T> TrieMap<T> {
10351035
}
10361036

10371037
/// Converts the map into an iterator over key-value pairs.
1038-
pub fn into_iter(mut self) -> impl Iterator<Item = (Vec<u8>, T)> {
1038+
pub fn into_iter(self) -> impl Iterator<Item = (Vec<u8>, T)> {
10391039
let mut keys_indices = Vec::with_capacity(self.size);
10401040
let mut current_key = Vec::new();
10411041
Self::collect_keys_indices(&self.root, &mut current_key, &mut keys_indices);

0 commit comments

Comments
 (0)