]> git.lizzy.rs Git - mt_rudp.git/blobdiff - src/error.rs
Don't spawn tasks
[mt_rudp.git] / src / error.rs
index 7cfc0578572766d985e5ac6869cfa2c0a1c1d8bb..28233e869f99a5541c688d0a61280e63a15db7c1 100644 (file)
@@ -1,7 +1,6 @@
 use super::*;
 use num_enum::TryFromPrimitiveError;
 use thiserror::Error;
-use tokio::sync::mpsc::error::SendError;
 
 #[derive(Error, Debug)]
 pub enum Error {
@@ -38,9 +37,3 @@ impl From<TryFromPrimitiveError<CtlType>> for Error {
         Self::InvalidCtlType(err.number)
     }
 }
-
-impl From<SendError<InPkt>> for Error {
-    fn from(_err: SendError<InPkt>) -> Self {
-        Self::LocalDisco
-    }
-}