Skip to content

Commit

Permalink
Make some Clone impls defer to Copy
Browse files Browse the repository at this point in the history
Fixes some clippy errors
  • Loading branch information
kyren committed Jan 9, 2024
1 parent db2d230 commit 634a63c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/linked_hash_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1880,10 +1880,7 @@ struct ValueLinks<K, V> {
impl<K, V> Clone for ValueLinks<K, V> {
#[inline]
fn clone(&self) -> Self {
ValueLinks {
next: self.next,
prev: self.prev,
}
*self
}
}

Expand All @@ -1896,7 +1893,7 @@ struct FreeLink<K, V> {
impl<K, V> Clone for FreeLink<K, V> {
#[inline]
fn clone(&self) -> Self {
FreeLink { next: self.next }
*self
}
}

Expand Down

0 comments on commit 634a63c

Please sign in to comment.