From 60023482f9b64dc92be6a08cb107e458e2ceadb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 25 Jul 2023 14:34:08 +0200 Subject: [PATCH] remove unused conversion --- src/lib.rs | 14 -------------- 1 file changed, 14 deletions(-) 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)