diff --git a/src/volatile_ref.rs b/src/volatile_ref.rs index 2880628..3a606bf 100644 --- a/src/volatile_ref.rs +++ b/src/volatile_ref.rs @@ -222,11 +222,7 @@ where A: Access + Copyable, { fn clone(&self) -> Self { - Self { - pointer: self.pointer, - reference: self.reference, - access: self.access, - } + *self } }