From 43d26f194d194fd03b04f75e52e16a0bd54f944d Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 18 Dec 2022 17:48:09 +0000 Subject: [PATCH] clippy --- auth/simple-auth-server/src/email_service.rs | 4 ++-- auth/simple-auth-server/src/errors.rs | 2 +- shutdown-server/src/main.rs | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/auth/simple-auth-server/src/email_service.rs b/auth/simple-auth-server/src/email_service.rs index 9a0afa1..616db69 100644 --- a/auth/simple-auth-server/src/email_service.rs +++ b/auth/simple-auth-server/src/email_service.rs @@ -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) } } diff --git a/auth/simple-auth-server/src/errors.rs b/auth/simple-auth-server/src/errors.rs index 9ac44de..618154b 100644 --- a/auth/simple-auth-server/src/errors.rs +++ b/auth/simple-auth-server/src/errors.rs @@ -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")] diff --git a/shutdown-server/src/main.rs b/shutdown-server/src/main.rs index 7d5db9a..8c752ae 100644 --- a/shutdown-server/src/main.rs +++ b/shutdown-server/src/main.rs @@ -59,6 +59,7 @@ impl StopHandle { /// Sends stop signal through contained server handle. pub(crate) fn stop(&self, graceful: bool) { + #[allow(clippy::let_underscore_future)] let _ = self.inner.lock().as_ref().unwrap().stop(graceful); } }