Take ownership of `self` in ObjectId::to_hex

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • bson-2.0.0-beta.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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

              Assignee:
              Patrick Freed
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: