Impl Error for all our error types.
I was trying to debug something in File just now and found that I couldn't casually dbg! a value of type FileDataSource::Error, because FileDataSource didn't have a trait bound saying its Error had to be Debug. Instead of just adding the Debug trait, let's do it properly, and make all the error types implement Error, which implies Debug. This involved adding #[derive(Debug)] on LoginError, and also an unused implementation of Display, but those both seem like useful things to have around anyway.
Showing
- src/auth.rs 2 additions, 0 deletionssrc/auth.rs
- src/client.rs 2 additions, 0 deletionssrc/client.rs
- src/config.rs 2 additions, 0 deletionssrc/config.rs
- src/file.rs 1 addition, 1 deletionsrc/file.rs
- src/login.rs 19 additions, 0 deletionssrc/login.rs
- src/top_level_error.rs 2 additions, 0 deletionssrc/top_level_error.rs
- src/tui.rs 2 additions, 0 deletionssrc/tui.rs
Loading
Please register or sign in to comment