-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
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.".