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

Accept impl AsRef<str> instead of &str

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-2.0.0-beta, 2.0.0-beta
    • Affects Version/s: None
    • Component/s: None
    • None

      Rather than accepting just &str, we should accept the more generic impl AsRef<str> to allow different string types to be passed in (e.g. String or &String). This is in line with the C-GENERIC Rust API guideline.

            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: