mirror of
https://github.com/actix/examples
synced 2025-06-27 01:27:43 +02:00
chore: update derive_more to v2
This commit is contained in:
@ -5,13 +5,13 @@ use uuid::Error as ParseError;
|
||||
|
||||
#[derive(Debug, Display)]
|
||||
pub enum ServiceError {
|
||||
#[display(fmt = "Internal Server Error")]
|
||||
#[display("Internal Server Error")]
|
||||
InternalServerError,
|
||||
|
||||
#[display(fmt = "BadRequest: {_0}")]
|
||||
#[display("BadRequest: {_0}")]
|
||||
BadRequest(String),
|
||||
|
||||
#[display(fmt = "Unauthorized")]
|
||||
#[display("Unauthorized")]
|
||||
Unauthorized,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user