WIP Read3

This commit is contained in:
Dominik Werder
2022-03-02 21:40:03 +01:00
parent 0b741d187e
commit d67608fabc
9 changed files with 426 additions and 48 deletions

View File

@@ -364,6 +364,25 @@ impl PublicError {
}
}
// TODO make this more useful
impl From<Error> for PublicError {
fn from(k: Error) -> Self {
Self {
reason: k.reason(),
msg: k.msg().into(),
}
}
}
impl From<&Error> for PublicError {
fn from(k: &Error) -> Self {
Self {
reason: k.reason(),
msg: k.msg().into(),
}
}
}
pub fn todo() {
todo!("TODO");
}