Skip to content

Commit

Permalink
unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
solidiquis committed Dec 13, 2024
1 parent 2906272 commit ab704ab
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions rust/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,6 @@ impl Error {
}
}

pub fn new_api_error<E>(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
}
Expand All @@ -73,7 +60,6 @@ impl Error {
pub enum ErrorKind {
Internal,
User,
Api,
}

impl<T, C> SiftError<T, C> for Result<T>
Expand All @@ -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"),
}
}
}
Expand Down

0 comments on commit ab704ab

Please sign in to comment.