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

Remove old doc! macro syntax

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • bson-0.15.0
    • Affects Version/s: None
    • Component/s: None
    • None

      When the BSON library's doc! macro was first written, the ":" character was not allowed in macro patterns, so the syntax for a key-value pair was implemented as "key" => value rather than "key": value. Later, when Rust added support for using ":" in macro patterns, the old syntax for doc! was kept around for backwards compatibility reasons. Since it's been a couple of years since that change was made, we should consider finally getting rid of the legacy syntax before 1.0.

            Assignee:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: