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

Replace unneeded serde enum cases in DecoderError

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

      DecoderError currently has enum cases for each of the provided methods on the serde::de::Error trait (https://docs.rs/serde/1.0.110/serde/de/trait.Error.html), but these are unnecessary. The serde docs themselves state that "Most deserializers should only need to provide the Error::custom method and inherit the default behavior for the other methods.". 

            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: