Skip to content

Commit e269fca

Browse files
committed
adjustment to make clippy happy
It seems it does not like `cloned()` when `copied()` can be used. See <https://github.com/rust-lang/hashbrown/runs/2967101005> for the details.
1 parent 3a06bad commit e269fca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ where
11681168
{
11691169
#[cfg_attr(feature = "inline-more", inline)]
11701170
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I) {
1171-
self.extend(iter.into_iter().cloned());
1171+
self.extend(iter.into_iter().copied());
11721172
}
11731173

11741174
#[inline]

0 commit comments

Comments
 (0)