mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
clippy
This commit is contained in:
@ -50,7 +50,7 @@ pub fn send_invitation(invitation: &Invitation) -> Result<(), ServiceError> {
|
||||
match result {
|
||||
Ok(res) => match res {
|
||||
TransmissionResponse::ApiResponse(api_res) => {
|
||||
println!("API Response: \n {:#?}", api_res);
|
||||
println!("API Response: \n {api_res:#?}");
|
||||
Ok(())
|
||||
}
|
||||
TransmissionResponse::ApiError(errors) => {
|
||||
@ -59,7 +59,7 @@ pub fn send_invitation(invitation: &Invitation) -> Result<(), ServiceError> {
|
||||
}
|
||||
},
|
||||
Err(error) => {
|
||||
println!("Send Email Error: \n {:#?}", error);
|
||||
println!("Send Email Error: \n {error:#?}");
|
||||
Err(ServiceError::InternalServerError)
|
||||
}
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ pub enum ServiceError {
|
||||
#[display(fmt = "Internal Server Error")]
|
||||
InternalServerError,
|
||||
|
||||
#[display(fmt = "BadRequest: {}", _0)]
|
||||
#[display(fmt = "BadRequest: {_0}")]
|
||||
BadRequest(String),
|
||||
|
||||
#[display(fmt = "Unauthorized")]
|
||||
|
Reference in New Issue
Block a user