1
0
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:
Rob Ede
2025-02-24 04:03:40 +00:00
parent a6df6cc903
commit df0dc549a5
15 changed files with 62 additions and 41 deletions

View File

@ -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,
}