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.74 clippy lints (#2942)
Chethan Raoc6a5a8574825
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rsindex b71e2aad5b..a0da9c88ef 100644--- a/crates/router/src/configs/defaults.rs+++ b/crates/router/src/configs/defaults.rs@@ -4356,8 +4356,8 @@ impl Default for super::settings::ApiKeys {#[cfg(feature = "kms")]kms_encrypted_hash_key: KmsValue::default(),- /// Hex-encoded 32-byte long (64 characters long when hex-encoded) key used for calculating- /// hashes of API keys+ // Hex-encoded 32-byte long (64 characters long when hex-encoded) key used for calculating+ // hashes of API keys#[cfg(not(feature = "kms"))]hash_key: String::new(),diff --git a/crates/router/src/connector/powertranz/transformers.rs b/crates/router/src/connector/powertranz/transformers.rsindex 83bca662ec..5a8c49bd8e 100644--- a/crates/router/src/connector/powertranz/transformers.rs+++ b/crates/router/src/connector/powertranz/transformers.rs@@ -150,8 +150,8 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for ExtendedData {fn try_from(item: &types::PaymentsAuthorizeRouterData) -> Result<Self, Self::Error> {Ok(Self {three_d_secure: ThreeDSecure {- /// Merchants preferred sized of challenge window presented to cardholder.- /// 5 maps to 100% of challenge window size+ // Merchants preferred sized of challenge window presented to cardholder.+ // 5 maps to 100% of challenge window sizechallenge_window_size: 5,},merchant_response_url: item.request.get_complete_authorize_url()?,diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rsindex ad42a85791..60fd3f315e 100644--- a/crates/router/src/core/payment_methods/cards.rs+++ b/crates/router/src/core/payment_methods/cards.rs@@ -156,7 +156,7 @@ pub async fn add_payment_method(.await?;}- Ok(resp).map(services::ApplicationResponse::Json)+ Ok(services::ApplicationResponse::Json(resp))}#[instrument(skip_all)]