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

@ -47,7 +47,7 @@ impl Mime {
match buffer.get(..if len > MAX_LEN { MAX_LEN } else { len }) {
Some(value) => match GString::from_utf8(value.into()) {
Ok(string) => Self::from_string(string.as_str()),
Err(reason) => Err(Error::Decode(reason)),
Err(e) => Err(Error::Decode(e)),
},
None => Err(Error::Protocol),
}