From 7daafdc1aa462712ab75ab23217630e0fefc13e0 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 5 Jun 2025 08:54:53 +0000 Subject: [PATCH] Fix cargo clippy issues --- remote_backend/src/controllers/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/remote_backend/src/controllers/mod.rs b/remote_backend/src/controllers/mod.rs index 11ee027..271fa5e 100644 --- a/remote_backend/src/controllers/mod.rs +++ b/remote_backend/src/controllers/mod.rs @@ -3,7 +3,6 @@ use actix_web::body::BoxBody; use actix_web::http::StatusCode; use std::error::Error; use std::fmt::{Display, Formatter}; -use std::io::ErrorKind; pub mod auth_controller; pub mod group_controller; @@ -52,7 +51,7 @@ impl From for HttpErr { impl From> for HttpErr { fn from(value: Box) -> Self { - HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) + HttpErr::Err(std::io::Error::other(value.to_string()).into()) } } @@ -82,7 +81,7 @@ impl From for HttpErr { impl From for HttpErr { fn from(value: actix_web::Error) -> Self { - HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) + HttpErr::Err(std::io::Error::other(value.to_string()).into()) } }