From 623bc5702023d4382989b0cfab14372166140a83 Mon Sep 17 00:00:00 2001 From: Sampras Lopes Date: Fri, 31 May 2024 16:52:47 +0530 Subject: [PATCH] fix(lints): fix clippy lints --- crates/router/src/routes/admin.rs | 4 ++-- crates/router/src/routes/routing.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/router/src/routes/admin.rs b/crates/router/src/routes/admin.rs index 2d1b77460a5f..cd3927565051 100644 --- a/crates/router/src/routes/admin.rs +++ b/crates/router/src/routes/admin.rs @@ -413,7 +413,7 @@ pub async fn payment_connector_delete( merchant_connector_id, }) .into_inner(); - api::server_wrap( + Box::pin(api::server_wrap( flow, state, &req, @@ -430,7 +430,7 @@ pub async fn payment_connector_delete( req.headers(), ), api_locking::LockAction::NotApplicable, - ) + )) .await } /// Merchant Account - Toggle KV diff --git a/crates/router/src/routes/routing.rs b/crates/router/src/routes/routing.rs index 556e91d86946..f99b01f2406d 100644 --- a/crates/router/src/routes/routing.rs +++ b/crates/router/src/routes/routing.rs @@ -385,7 +385,7 @@ pub async fn retrieve_surcharge_decision_manager_config( req: HttpRequest, ) -> impl Responder { let flow = Flow::DecisionManagerRetrieveConfig; - oss_api::server_wrap( + Box::pin(oss_api::server_wrap( flow, state, &req, @@ -405,7 +405,7 @@ pub async fn retrieve_surcharge_decision_manager_config( #[cfg(feature = "release")] &auth::JWTAuth(Permission::SurchargeDecisionManagerRead), api_locking::LockAction::NotApplicable, - ) + )) .await } @@ -482,7 +482,7 @@ pub async fn retrieve_decision_manager_config( req: HttpRequest, ) -> impl Responder { let flow = Flow::DecisionManagerRetrieveConfig; - oss_api::server_wrap( + Box::pin(oss_api::server_wrap( flow, state, &req, @@ -499,7 +499,7 @@ pub async fn retrieve_decision_manager_config( #[cfg(feature = "release")] &auth::JWTAuth(Permission::SurchargeDecisionManagerRead), api_locking::LockAction::NotApplicable, - ) + )) .await }