enshort common error name

This commit is contained in:
yggverse 2024-11-30 04:05:31 +02:00
parent 809e54b887
commit a06e4e9eff
16 changed files with 49 additions and 49 deletions

View file

@ -9,8 +9,8 @@ pub enum Error {
impl Display for Error {
fn fmt(&self, f: &mut Formatter) -> Result {
match self {
Self::Decode(reason) => {
write!(f, "Decode error: {reason}")
Self::Decode(e) => {
write!(f, "Decode error: {e}")
}
Self::Protocol => {
write!(f, "Protocol error")