diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/error.rs b/src/error.rs index 02080c7..9b84ace 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,6 +1,7 @@ use crate::{CtlType, InPkt, PktType}; use num_enum::TryFromPrimitiveError; -use std::{fmt, io, sync::mpsc}; +use std::{fmt, io}; +use tokio::sync::mpsc::error::SendError; #[derive(Debug)] pub enum Error { @@ -32,8 +33,8 @@ impl From<TryFromPrimitiveError<CtlType>> for Error { } } -impl From<mpsc::SendError<InPkt>> for Error { - fn from(_err: mpsc::SendError<InPkt>) -> Self { +impl From<SendError<InPkt>> for Error { + fn from(_err: SendError<InPkt>) -> Self { Self::LocalDisco // technically not a disconnect but a local drop } } |