|
@@ -7,7 +7,7 @@ use bytes::Bytes;
|
|
|
use dyn_clone::DynClone;
|
|
|
use protobuf::ProtobufError;
|
|
|
use serde::{Serialize, Serializer};
|
|
|
-use std::{fmt, option::NoneError};
|
|
|
+use std::fmt;
|
|
|
use tokio::{sync::mpsc::error::SendError, task::JoinError};
|
|
|
|
|
|
pub trait Error: fmt::Debug + DynClone + Send + Sync {
|
|
@@ -53,12 +53,6 @@ impl From<SendError<EventRequest>> for DispatchError {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-impl From<NoneError> for DispatchError {
|
|
|
- fn from(s: NoneError) -> Self {
|
|
|
- InternalError::UnexpectedNone(format!("Unexpected none: {:?}", s)).into()
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
impl From<String> for DispatchError {
|
|
|
fn from(s: String) -> Self { InternalError::Other(s).into() }
|
|
|
}
|