Skip to content

Commit

Permalink
fix: clippy lint: explicit call to .into_iter() in function argumen…
Browse files Browse the repository at this point in the history
…t accepting `IntoIterator`

Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Sep 25, 2024
1 parent 743ae0c commit ee240f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/merge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ pub mod hashmap {
///
/// In other words, this gives precedence to `right`.
pub fn overwrite<K: Eq + Hash, V>(left: &mut HashMap<K, V>, right: HashMap<K, V>) {
left.extend(right.into_iter())
left.extend(right)
}

/// On conflict, ignore elements from `right`.
Expand Down

0 comments on commit ee240f6

Please sign in to comment.