cleanup rust warnings

This commit is contained in:
Samuel Lorch 2023-10-30 22:19:55 +01:00
parent 4c564164e8
commit 77e2430507
5 changed files with 4 additions and 14 deletions

View file

@ -29,9 +29,6 @@ use tracing::info;
#[derive(Error, Debug)]
pub enum ApiError {
#[error("Not Implemented")]
NotImplemented,
#[error("Not Found")]
NotFound,
@ -50,8 +47,6 @@ impl Into<ErrorObject<'static>> for ApiError {
info!("Converting Error {:?}", self);
match self {
// Todo Add Proper mappings
// ApiError::ParameterDeserialize => ErrorCode::InvalidParams,
ApiError::NotImplemented => ErrorCode::ServerError(0),
_ => ErrorCode::InternalError,
}
.into()