Skip to content

Commit

Permalink
lint: clippy::cloned_instead_of_copied lint violation
Browse files Browse the repository at this point in the history
  • Loading branch information
lopopolo authored and BurntSushi committed Nov 13, 2024
1 parent c7f3d56 commit dee0d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ pub trait ByteVec: private::Sealed {
R: ops::RangeBounds<usize>,
B: AsRef<[u8]>,
{
self.as_vec_mut().splice(range, replace_with.as_ref().iter().cloned());
self.as_vec_mut().splice(range, replace_with.as_ref().iter().copied());
}

/// Creates a draining iterator that removes the specified range in this
Expand Down

0 comments on commit dee0d9a

Please sign in to comment.