Closed phil-opp closed 6 months ago
Read-only VolatileRef instances implement Copy, so we should set the Clone implementation to just *self to ensure that Clone and Copy match. See https://rust-lang.github.io/rust-clippy/master/index.html#/non_canonical_clone_impl .
VolatileRef
Copy
Clone
*self
Read-only
VolatileRef
instances implementCopy
, so we should set theClone
implementation to just*self
to ensure thatClone
andCopy
match. See https://rust-lang.github.io/rust-clippy/master/index.html#/non_canonical_clone_impl .