felixwrt / sml-rs

Smart Message Language parser written in Rust
Other
11 stars 3 forks source link

Implement std::error::Error for all error types #27

Closed linuskmr closed 5 months ago

linuskmr commented 6 months ago

This PR implements std::error::Error for all error types matching the Regex pub \w+ \w+Err: ReadParsedError, DecodeErr, ParseError, TlfParseError, ReadDecodedError. Therefore, core::fmt::Display is also implemented for all these types.

Closes https://github.com/felixwrt/sml-rs/issues/19

felixwrt commented 5 months ago

I somehow messed up my notification settings and didn't see your PR until now. Sry for that and thanks for taking the time to contribute! Changes look good to me 👍