Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
chore: address Rust 1.88.0 clippy lints (#8607)
Shankar Singh Cb1c9be1600db
diff --git a/crates/router/src/core/payment_methods/vault.rs b/crates/router/src/core/payment_methods/vault.rsindex c59a2f84c3..d5848c7f41 100644--- a/crates/router/src/core/payment_methods/vault.rs+++ b/crates/router/src/core/payment_methods/vault.rs@@ -1555,10 +1555,7 @@ pub async fn insert_cvc_using_payment_token(.change_context(errors::ApiErrorResponse::InternalServerError).attach_printable("Failed to get redis connection")?;- let key = format!(- "pm_token_{}_{}_hyperswitch_cvc",- payment_token, payment_method- );+ let key = format!("pm_token_{payment_token}_{payment_method}_hyperswitch_cvc");let payload_to_be_encrypted = TemporaryVaultCvc { card_cvc };@@ -1601,10 +1598,7 @@ pub async fn retrieve_and_delete_cvc_from_payment_token(.change_context(errors::ApiErrorResponse::InternalServerError).attach_printable("Failed to get redis connection")?;- let key = format!(- "pm_token_{}_{}_hyperswitch_cvc",- payment_token, payment_method- );+ let key = format!("pm_token_{payment_token}_{payment_method}_hyperswitch_cvc");let data = redis_conn.get_key::<bytes::Bytes>(&key.clone().into())diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rsindex d9c00fbadb..3cdcb28d4d 100644--- a/crates/router/src/core/unified_connector_service.rs+++ b/crates/router/src/core/unified_connector_service.rs@@ -101,8 +101,7 @@ pub fn build_unified_connector_service_payment_method(}_ => {return Err(UnifiedConnectorServiceError::NotImplemented(format!(- "Unimplemented card payment method type: {:?}",- payment_method_type+ "Unimplemented card payment method type: {payment_method_type:?}")).into());}