error: fmt WriteError style
This commit is contained in:
parent
a0f34e945d
commit
e5f8b6b56e
@ -54,11 +54,11 @@ pub enum WriteError<B> {
|
||||
|
||||
impl<B: fmt::Display> fmt::Display for WriteError<B> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
match self {
|
||||
match &self {
|
||||
&WriteError::SpaceExhausted =>
|
||||
write!(f, "space exhausted"),
|
||||
&WriteError::Backend(ref e) =>
|
||||
e.fmt(f),
|
||||
&WriteError::Backend(err) =>
|
||||
write!(f, "{}", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user