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> {
|
impl<B: fmt::Display> fmt::Display for WriteError<B> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
match self {
|
match &self {
|
||||||
&WriteError::SpaceExhausted =>
|
&WriteError::SpaceExhausted =>
|
||||||
write!(f, "space exhausted"),
|
write!(f, "space exhausted"),
|
||||||
&WriteError::Backend(ref e) =>
|
&WriteError::Backend(err) =>
|
||||||
e.fmt(f),
|
write!(f, "{}", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue