small fix

This commit is contained in:
2021-05-20 20:22:05 +02:00
parent 2dc783bf66
commit 3ac416daa9

View File

@ -85,15 +85,13 @@ impl fmt::Display for Error {
error += ": "; error += ": ";
error += desc; error += desc;
} }
write!(f, "{}", error); write!(f, "{}", error)
Ok(())
} }
} }
impl fmt::Debug for Error { impl fmt::Debug for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.fmt(f); self.fmt(f)
Ok(())
} }
} }