mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-10 00:44:21 +02:00
anyhow
: Remove ReadUsernameError::IoError
As far as I understand, the example with the `anyhow` example does not use its special `IoError` anymore, unlike the previous example with just `thiserror`. I think this should be made clear. I considered just adding a `// Now unused` comment, but I think ti's clearer to just remove the unused code.
This commit is contained in:
parent
0218fdb1f0
commit
894e694cdb
@ -11,8 +11,6 @@ use anyhow::{Context, Result};
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
enum ReadUsernameError {
|
||||
#[error("Could not read: {0}")]
|
||||
IoError(#[from] io::Error),
|
||||
#[error("Found no username in {0}")]
|
||||
EmptyUsername(String),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user