Replace unneeded serde enum cases in DecoderError

XMLWordPrintableJSON

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

                Created:
                Updated:
                Resolved: