2 Commits

Author SHA1 Message Date
4584004d35 Update materialui to ^7.1.1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2025-06-06 00:23:49 +00:00
926b265f91 Fix cargo clippy issues
All checks were successful
continuous-integration/drone/push Build is passing
2025-06-05 09:29:36 +00:00
2 changed files with 11 additions and 12 deletions

View File

@@ -3,7 +3,6 @@ use actix_web::body::BoxBody;
use actix_web::http::StatusCode; use actix_web::http::StatusCode;
use std::error::Error; use std::error::Error;
use std::fmt::{Display, Formatter}; use std::fmt::{Display, Formatter};
use std::io::ErrorKind;
use zip::result::ZipError; use zip::result::ZipError;
/// Custom error to ease controller writing /// Custom error to ease controller writing
@@ -52,7 +51,7 @@ impl From<serde_json::Error> for HttpErr {
impl From<Box<dyn Error>> for HttpErr { impl From<Box<dyn Error>> for HttpErr {
fn from(value: Box<dyn Error>) -> Self { fn from(value: Box<dyn Error>) -> Self {
HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) HttpErr::Err(std::io::Error::other(value.to_string()).into())
} }
} }
@@ -82,43 +81,43 @@ impl From<reqwest::header::ToStrError> for HttpErr {
impl From<actix_web::Error> for HttpErr { impl From<actix_web::Error> for HttpErr {
fn from(value: actix_web::Error) -> Self { 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())
} }
} }
impl From<actix::MailboxError> for HttpErr { impl From<actix::MailboxError> for HttpErr {
fn from(value: actix::MailboxError) -> Self { fn from(value: actix::MailboxError) -> Self {
HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) HttpErr::Err(std::io::Error::other(value.to_string()).into())
} }
} }
impl From<actix_identity::error::GetIdentityError> for HttpErr { impl From<actix_identity::error::GetIdentityError> for HttpErr {
fn from(value: actix_identity::error::GetIdentityError) -> Self { fn from(value: actix_identity::error::GetIdentityError) -> Self {
HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) HttpErr::Err(std::io::Error::other(value.to_string()).into())
} }
} }
impl From<actix_identity::error::LoginError> for HttpErr { impl From<actix_identity::error::LoginError> for HttpErr {
fn from(value: actix_identity::error::LoginError) -> Self { fn from(value: actix_identity::error::LoginError) -> Self {
HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) HttpErr::Err(std::io::Error::other(value.to_string()).into())
} }
} }
impl From<openssl::error::ErrorStack> for HttpErr { impl From<openssl::error::ErrorStack> for HttpErr {
fn from(value: openssl::error::ErrorStack) -> Self { fn from(value: openssl::error::ErrorStack) -> Self {
HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) HttpErr::Err(std::io::Error::other(value.to_string()).into())
} }
} }
impl From<ZipError> for HttpErr { impl From<ZipError> for HttpErr {
fn from(value: ZipError) -> Self { fn from(value: ZipError) -> Self {
HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) HttpErr::Err(std::io::Error::other(value.to_string()).into())
} }
} }
impl From<walkdir::Error> for HttpErr { impl From<walkdir::Error> for HttpErr {
fn from(value: walkdir::Error) -> Self { fn from(value: walkdir::Error) -> Self {
HttpErr::Err(std::io::Error::new(ErrorKind::Other, value.to_string()).into()) HttpErr::Err(std::io::Error::other(value.to_string()).into())
} }
} }

View File

@@ -301,9 +301,9 @@
} }
}, },
"node_modules/@babel/runtime": { "node_modules/@babel/runtime": {
"version": "7.27.4", "version": "7.27.6",
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.4.tgz", "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz",
"integrity": "sha512-t3yaEOuGu9NlIZ+hIeGbBjFtZT7j2cb2tg0fuaJKeGotchRjjLfrBA9Kwf8quhpP1EUuxModQg04q/mBwyg8uA==", "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==",
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=6.9.0" "node": ">=6.9.0"