Skip to content

Commit

Permalink
Merge pull request #44 from rust-osdev/fix-clippy-warning
Browse files Browse the repository at this point in the history
Fix clippy warning about clone implementation
  • Loading branch information
phil-opp committed Mar 22, 2024
2 parents ef6eb83 + 3e6524d commit d2d2239
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/volatile_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,7 @@ where
A: Access + Copyable,
{
fn clone(&self) -> Self {
Self {
pointer: self.pointer,
reference: self.reference,
access: self.access,
}
*self
}
}

Expand Down

0 comments on commit d2d2239

Please sign in to comment.