From 2b03dacdd73bf97cee1b5dd1dd9a45ec344481b0 Mon Sep 17 00:00:00 2001 From: Stiopa Koltsov Date: Fri, 6 Jan 2023 06:23:01 +0000 Subject: [PATCH] Apply clippy suggestions So CI could be green on the other PR. --- src/map.rs | 2 +- src/set.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.rs b/src/map.rs index 5049aa2b5b..e238bf66ba 100644 --- a/src/map.rs +++ b/src/map.rs @@ -7679,7 +7679,7 @@ mod test_map { let vec: Vec<_> = (100..200).map(|i| (i, i)).collect(); a.extend(iter); a.extend(&vec); - a.extend(&create_arr::(200, 1)); + a.extend(create_arr::(200, 1)); assert_eq!(a.len(), 300); diff --git a/src/set.rs b/src/set.rs index 60c1b1cd19..a8f24de80b 100644 --- a/src/set.rs +++ b/src/set.rs @@ -2794,7 +2794,7 @@ mod test_set { let mut a = HashSet::new(); a.insert(1); - a.extend(&[2, 3, 4]); + a.extend([2, 3, 4]); assert_eq!(a.len(), 4); assert!(a.contains(&1));