You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-26 18:51:00 +02:00
Inline format vars to make the format str simpler (#551)
This commit is contained in:
@ -17,8 +17,8 @@ impl Error for ReadUsernameError {}
|
||||
impl Display for ReadUsernameError {
|
||||
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
||||
match self {
|
||||
Self::IoError(e) => write!(f, "IO error: {}", e),
|
||||
Self::EmptyUsername(filename) => write!(f, "Found no username in {}", filename),
|
||||
Self::IoError(e) => write!(f, "IO error: {e}"),
|
||||
Self::EmptyUsername(filename) => write!(f, "Found no username in {filename}"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user