mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-21 15:35:53 +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)]
|
#[derive(Error, Debug)]
|
||||||
enum ReadUsernameError {
|
enum ReadUsernameError {
|
||||||
#[error("Could not read: {0}")]
|
|
||||||
IoError(#[from] io::Error),
|
|
||||||
#[error("Found no username in {0}")]
|
#[error("Found no username in {0}")]
|
||||||
EmptyUsername(String),
|
EmptyUsername(String),
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user