mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-22 18:39:31 +00:00
Update dependencies
This commit is contained in:
@@ -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