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

Remove From<[u8; 12]> impl for Bson

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None

      There currently exists a From<[u8; 12]> implementation for Bson which constructs an Bson::ObjectId. This is somewhat unintuitive, as one would might assume a Bson::Binary would be created instead. We should consider removing this From implementation as it is only useful in niche situations and may be surprising if accidentally encountered.

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

              Created:
              Updated:
              Resolved: