From 09cbc2522bbdbc4b54299f7f6c1122a656062cb1 Mon Sep 17 00:00:00 2001 From: AkshayaFoiger Date: Wed, 8 Jan 2025 12:52:09 +0530 Subject: [PATCH] chore: fix clippy error --- crates/router/src/connector/stripe/transformers.rs | 4 ++-- crates/router/src/core/payments/transformers.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rs index fb6aeb78ad94..e35d54791c61 100644 --- a/crates/router/src/connector/stripe/transformers.rs +++ b/crates/router/src/connector/stripe/transformers.rs @@ -1153,7 +1153,7 @@ fn create_stripe_payment_method( payment_method_token: Option, is_customer_initiated_mandate_payment: Option, billing_address: StripeBillingAddress, - is_request_overcapture: Option, + request_overcapture: Option, ) -> Result< ( StripePaymentMethodData, @@ -1172,7 +1172,7 @@ fn create_stripe_payment_method( StripePaymentMethodData::try_from(( card_details, payment_method_auth_type, - is_request_overcapture, + request_overcapture, ))?, Some(StripePaymentMethodType::Card), billing_address, diff --git a/crates/router/src/core/payments/transformers.rs b/crates/router/src/core/payments/transformers.rs index 035272bfbd4d..3a1219447b8d 100644 --- a/crates/router/src/core/payments/transformers.rs +++ b/crates/router/src/core/payments/transformers.rs @@ -1348,7 +1348,7 @@ where request_external_three_ds_authentication: payment_intent .request_external_three_ds_authentication .clone(), - request_overcapture: payment_intent.request_overcapture.clone(), + request_overcapture: payment_intent.request_overcapture, }, vec![], )))