bson: remove From<[u8; 12]> impl

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • bson-4.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Rust Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      This is a very specialized impl that converts a 12-byte array into an ObjectId. Concretely, this prevents implementing From<u8> because that would cause the impl to collide with the generic array From<[T; N]> impl; I'd also argue that converting a raw array into an oid specifically is somewhat surprising behavior.

      Unfortunately, this would be breaking behavior, so it has to wait for 4.0.

            Assignee:
            Unassigned
            Reporter:
            Abraham Egnor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: