mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-22 18:39:31 +00:00
Migrate from derive_more to thiserror
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
use actix_web::{http::StatusCode, HttpResponse};
|
||||
use derive_more::Display;
|
||||
use thiserror::Error;
|
||||
|
||||
#[derive(Debug, Display, Error, Clone)]
|
||||
#[derive(Debug, Error, Clone)]
|
||||
pub enum Error {
|
||||
#[display("Internal server error")]
|
||||
#[error("Internal server error")]
|
||||
InternalError,
|
||||
#[display("Not found")]
|
||||
#[error("Not found")]
|
||||
NotFound,
|
||||
#[display("Bad request")]
|
||||
#[error("Bad request")]
|
||||
BadRequest,
|
||||
#[error("Unauthorized")]
|
||||
Unauthorized,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user