-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
Now that ObjectId is Copy, we should take ownership of self in the conversion method ObjectId::to_hex, as per the naming conventions for Copy types in the Rust API guidelines (C-CONV). There is also a nightly clippy lint that catches this: https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention