mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 12:52:27 +00:00
Update dependencies
This commit is contained in:
@@ -3,12 +3,11 @@ name = "rustical_auth"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.8"
|
||||
actix-web = "4.9"
|
||||
actix-web-httpauth = "0.8"
|
||||
derive_more = "0.99"
|
||||
derive_more = "1.0"
|
||||
futures-util = "0.3"
|
||||
password-auth = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
thiserror = "1.0"
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
use actix_web::{http::StatusCode, HttpResponse};
|
||||
use derive_more::{Display, Error};
|
||||
use derive_more::Display;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Display, Error, Clone)]
|
||||
pub enum Error {
|
||||
#[display(fmt = "Internal server error")]
|
||||
#[display("Internal server error")]
|
||||
InternalError,
|
||||
#[display(fmt = "Not found")]
|
||||
#[display("Not found")]
|
||||
NotFound,
|
||||
#[display(fmt = "Bad request")]
|
||||
#[display("Bad request")]
|
||||
BadRequest,
|
||||
Unauthorized,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user