From ad502013c0a09cf6674fd46de84a54c90914f5e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=90=91=E5=A4=9C?= Date: Fri, 22 Dec 2023 19:29:04 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=86=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/exceptions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/exceptions.rs b/src/exceptions.rs index 9e7fcd1..2e57b70 100644 --- a/src/exceptions.rs +++ b/src/exceptions.rs @@ -7,7 +7,7 @@ pub enum OblivionException { ConnectionRefusedError(Option), InvalidOblivion(Option), AddressAlreadyInUse(Option), - UnexceptedDisconnection(Option), + UnexpectedDisconnection(Option), BadBytes(Option), ConnectTimedOut(Option), DataTooLarge(Option), @@ -48,7 +48,7 @@ impl core::fmt::Display for OblivionException { Self::AddressAlreadyInUse(info) => { OblivionException::write_error(f, "AddressAlreadyInUse", info) } - Self::UnexceptedDisconnection(info) => { + Self::UnexpectedDisconnection(info) => { OblivionException::write_error(f, "UnexceptedDisconnection", info) } Self::BadBytes(info) => OblivionException::write_error(f, "BadBytes", info),