mirror of
https://github.com/speatzle/nfsense.git
synced 2025-09-13 15:19:08 +00:00
cleanup rust warnings
This commit is contained in:
parent
4c564164e8
commit
77e2430507
5 changed files with 4 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue