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 += desc;
}
write!(f, "{}", error);
Ok(())
write!(f, "{}", error)
}
}
impl fmt::Debug for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
self.fmt(f);
Ok(())
self.fmt(f)
}
}