mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 09:35:33 +00:00
enshort common error name
This commit is contained in:
parent
809e54b887
commit
a06e4e9eff
16 changed files with 49 additions and 49 deletions
|
|
@ -10,8 +10,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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue