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

main
Brian Picciano 3 months ago
parent 2302e9ff64
commit b88f555390
  1. 2
      src/error/unexpected.rs

@ -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)
}
}

Loading…
Cancel
Save