diff --git a/rust/src/error/mod.rs b/rust/src/error/mod.rs index deb9ba84..d49a2e83 100644 --- a/rust/src/error/mod.rs +++ b/rust/src/error/mod.rs @@ -51,19 +51,6 @@ impl Error { } } - pub fn new_api_error(err: E) -> Self - where - E: StdError + Send + Sync + 'static, - { - let inner = Box::new(err); - Self { - inner, - kind: ErrorKind::Api, - context: None, - help: None, - } - } - pub fn into_inner(self) -> BoxedError { self.inner } @@ -73,7 +60,6 @@ impl Error { pub enum ErrorKind { Internal, User, - Api, } impl SiftError for Result @@ -100,7 +86,6 @@ impl fmt::Display for ErrorKind { match self { Self::Internal => writeln!(f, "Internal error"), Self::User => writeln!(f, "User error"), - Self::Api => writeln!(f, "API error"), } } }