Accept impl AsRef<str> instead of &str

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • bson-2.0.0-beta, 2.0.0-beta
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: