Remove display prefix from unexpected errors, was causing redundancy in nested errors

This commit is contained in:
Brian Picciano 2024-02-13 15:16:48 +01:00
parent 2302e9ff64
commit b88f555390

View File

@ -52,7 +52,7 @@ impl Error {
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "Unexpected error occurred: {}", self.0)
write!(f, "{}", self.0)
}
}