WIP refactor frame type id, it type checks
This commit is contained in:
@@ -9,6 +9,7 @@ backtrace = "0.3"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
serde_cbor = "0.11"
|
||||
erased-serde = "0.3"
|
||||
async-channel = "1.6"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
url = "2.2"
|
||||
|
||||
@@ -317,9 +317,7 @@ impl<I> nom::error::ParseError<I> for Error {
|
||||
Self::with_msg(format!("ParseError kind {:?} other {:?}", kind, other))
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
impl From<JoinError> for Error {
|
||||
fn from(k: JoinError) -> Self {
|
||||
Self::with_msg(format!("JoinError {:?}", k))
|
||||
@@ -329,7 +327,7 @@ impl From<JoinError> for Error {
|
||||
|
||||
impl From<Box<bincode::ErrorKind>> for Error {
|
||||
fn from(k: Box<bincode::ErrorKind>) -> Self {
|
||||
Self::with_msg(format!("bincode::ErrorKind {:?}", k))
|
||||
Self::with_msg(k.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
@@ -339,6 +337,12 @@ impl From<serde_cbor::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<erased_serde::Error> for Error {
|
||||
fn from(k: erased_serde::Error) -> Self {
|
||||
Self::with_msg(k.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
impl From<std::fmt::Error> for Error {
|
||||
fn from(k: std::fmt::Error) -> Self {
|
||||
Self::with_msg(k.to_string())
|
||||
|
||||
Reference in New Issue
Block a user