Skip to content

Commit

Permalink
Merge pull request #579 from nyurik/display-impl
Browse files Browse the repository at this point in the history
Simplify Display impl
  • Loading branch information
KodrAus authored Aug 20, 2023
2 parents 6ced0fa + 4aa5501 commit b7ac2ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/kv/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ impl fmt::Display for Error {
use self::Inner::*;
match &self.inner {
#[cfg(feature = "std")]
&Boxed(ref err) => err.fmt(f),
&Value(ref err) => err.fmt(f),
&Msg(ref msg) => msg.fmt(f),
&Fmt => fmt::Error.fmt(f),
Boxed(err) => err.fmt(f),
Value(err) => err.fmt(f),
Msg(msg) => msg.fmt(f),
Fmt => fmt::Error.fmt(f),
}
}
}
Expand Down

0 comments on commit b7ac2ba

Please sign in to comment.