rust-osdev / volatile

Apache License 2.0
71 stars 19 forks source link

Fix clippy warning about clone implementation #44

Closed phil-opp closed 6 months ago

phil-opp commented 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 .