From ee240f6bf9fcc82fde81230dfad05c07d1918c56 Mon Sep 17 00:00:00 2001 From: simonsan <14062932+simonsan@users.noreply.github.com> Date: Wed, 25 Sep 2024 17:21:08 +0200 Subject: [PATCH] fix: clippy lint: explicit call to `.into_iter()` in function argument accepting `IntoIterator` Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com> --- crates/merge/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/merge/src/lib.rs b/crates/merge/src/lib.rs index ab9b4ab..c62e058 100644 --- a/crates/merge/src/lib.rs +++ b/crates/merge/src/lib.rs @@ -273,7 +273,7 @@ pub mod hashmap { /// /// In other words, this gives precedence to `right`. pub fn overwrite(left: &mut HashMap, right: HashMap) { - left.extend(right.into_iter()) + left.extend(right) } /// On conflict, ignore elements from `right`.