diff --git a/src/lib.rs b/src/lib.rs index e014205c..2e44b9e8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -95,20 +95,6 @@ pub enum Error { PathAbsent, } -impl From> for u8 { - fn from(err: Error) -> Self { - match err { - Error::PathNotFound => 1, - Error::PathTooLong => 2, - Error::PathTooShort => 3, - Error::PostDeserialization(_) => 4, - Error::SerDe(_) => 5, - Error::BadIndex => 6, - Error::PathAbsent => 8, - } - } -} - impl From for Error { fn from(err: T) -> Self { Error::SerDe(err)