Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-826

Take ownership of `self` in ObjectId::to_hex

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-2.0.0-beta.1
    • 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

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: