Skip to content

Commit 09dc17e

Browse files
committed
Auto merge of #381 - stepancheg:clippy, r=Amanieu
Apply clippy suggestions So CI could be green on the other PR.
2 parents f18ea5e + 2b03dac commit 09dc17e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7679,7 +7679,7 @@ mod test_map {
76797679
let vec: Vec<_> = (100..200).map(|i| (i, i)).collect();
76807680
a.extend(iter);
76817681
a.extend(&vec);
7682-
a.extend(&create_arr::<i32, 100>(200, 1));
7682+
a.extend(create_arr::<i32, 100>(200, 1));
76837683

76847684
assert_eq!(a.len(), 300);
76857685

src/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@ mod test_set {
27942794
let mut a = HashSet::new();
27952795
a.insert(1);
27962796

2797-
a.extend(&[2, 3, 4]);
2797+
a.extend([2, 3, 4]);
27982798

27992799
assert_eq!(a.len(), 4);
28002800
assert!(a.contains(&1));

0 commit comments

Comments
 (0)