WIP refactor frame type id, it type checks

This commit is contained in:
Dominik Werder
2022-06-23 13:33:07 +02:00
parent c046303c7f
commit 66215f583f
29 changed files with 453 additions and 255 deletions

View File

@@ -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())