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.99 clippy warnings (#14807)
Anurag Thakur35caede87623
diff --git a/Cargo.lock b/Cargo.lockindex ce26da0b46..07d5425274 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -695,13 +695,13 @@ dependencies = [[[package]]name = "async-trait"-version = "0.1.88"+version = "0.1.92"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e539d3fca749fcee5236ab05e93a52867dd549cc157c8cb7f99595f3cedffdb5"+checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667"dependencies = ["proc-macro2","quote",- "syn 2.0.101",+ "syn 3.0.9",][[package]]@@ -10283,6 +10283,17 @@ dependencies = ["unicode-ident",]+[[package]]+name = "syn"+version = "3.0.9"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"+dependencies = [+ "proc-macro2",+ "quote",+ "unicode-ident",+]+[[package]]name = "syn_derive"version = "0.1.8"diff --git a/crates/analytics/Cargo.toml b/crates/analytics/Cargo.tomlindex ace7068490..218fdaf8ca 100644--- a/crates/analytics/Cargo.toml+++ b/crates/analytics/Cargo.toml@@ -26,7 +26,7 @@ currency_conversion = { version = "0.1.0", path = "../currency_conversion" }#Third Party dependenciesactix-web = "4.11.0"-async-trait = "0.1.88"+async-trait = "0.1.92"aws-config = { version = "1.5.10", features = ["behavior-version-latest"] }aws-sdk-lambda = { version = "1.60.0" }aws-smithy-types = { version = "1.3.1" }diff --git a/crates/common_utils/Cargo.toml b/crates/common_utils/Cargo.tomlindex 4ddbbc3060..45bdb4e1ce 100644--- a/crates/common_utils/Cargo.toml+++ b/crates/common_utils/Cargo.toml@@ -26,7 +26,7 @@ tokenization_v2 = []deja = ["dep:deja"][dependencies]-async-trait = { version = "0.1.88", optional = true }+async-trait = { version = "0.1.92", optional = true }base64 = "0.22.1"base64-serde = "0.8.0"blake3 = { version = "1.8.2", features = ["serde"] }diff --git a/crates/drainer/Cargo.toml b/crates/drainer/Cargo.tomlindex 0b5ba7849e..88eddbd1eb 100644--- a/crates/drainer/Cargo.toml+++ b/crates/drainer/Cargo.toml@@ -21,7 +21,7 @@ redis-rs = ["redis_interface/redis-rs", "redis_interface/metrics", "storage_impl[dependencies]actix-web = "4.11.0"async-bb8-diesel = "0.2.1"-async-trait = "0.1.88"+async-trait = "0.1.92"bb8 = "0.8"clap = { version = "4.5.38", default-features = false, features = ["std", "derive", "help", "usage"] }config = { version = "0.14.1", features = ["toml"] }diff --git a/crates/external_services/Cargo.toml b/crates/external_services/Cargo.tomlindex d8349d6f15..a8d81d86ad 100644--- a/crates/external_services/Cargo.toml+++ b/crates/external_services/Cargo.toml@@ -54,7 +54,7 @@ dynamic_routing = [][dependencies]-async-trait = "0.1.88"+async-trait = "0.1.92"aws-config = { version = "1.5.10", optional = true, features = ["behavior-version-latest",] }diff --git a/crates/hyperswitch_connectors/Cargo.toml b/crates/hyperswitch_connectors/Cargo.tomlindex b1dd4fed16..927f31d798 100644--- a/crates/hyperswitch_connectors/Cargo.toml+++ b/crates/hyperswitch_connectors/Cargo.toml@@ -19,7 +19,7 @@ dummy_connector = [[dependencies]actix-web = "4.11.0"-async-trait = "0.1.88"+async-trait = "0.1.92"base64 = "0.22.1"bytes = "1.10.1"chrono = "0.4"diff --git a/crates/hyperswitch_domain_models/Cargo.toml b/crates/hyperswitch_domain_models/Cargo.tomlindex e34d4976a4..775e856854 100644--- a/crates/hyperswitch_domain_models/Cargo.toml+++ b/crates/hyperswitch_domain_models/Cargo.toml@@ -35,7 +35,7 @@ router_env = { version = "0.1.0", path = "../router_env" }# Third party depsactix-web = "4.11.0"-async-trait = "0.1.88"+async-trait = "0.1.92"base64 = "0.22.1"error-stack = "0.4.1"futures = "0.3.31"diff --git a/crates/hyperswitch_interfaces/Cargo.toml b/crates/hyperswitch_interfaces/Cargo.tomlindex 6cf53d1ed0..234e0a8238 100644--- a/crates/hyperswitch_interfaces/Cargo.toml+++ b/crates/hyperswitch_interfaces/Cargo.toml@@ -18,7 +18,7 @@ ext_services_latency = [][dependencies]actix-web = "4.11.0"-async-trait = "0.1.88"+async-trait = "0.1.92"bytes = "1.10.1"dyn-clone = "1.0.19"error-stack = "0.4.1"diff --git a/crates/injector/Cargo.toml b/crates/injector/Cargo.tomlindex 93250ac82a..8b6b15850f 100644--- a/crates/injector/Cargo.toml+++ b/crates/injector/Cargo.toml@@ -17,7 +17,7 @@ common_utils = { version = "0.1.0", path = "../common_utils" }hyperswitch_masking = "0.0.1"router_env = { version = "0.1.0", path = "../router_env" }-async-trait = { version = "0.1.88" }+async-trait = { version = "0.1.92" }base64 = { version = "0.22.1" }error-stack = { version = "0.4.1" }nom = { version = "7.1.3" }diff --git a/crates/payment_methods/Cargo.toml b/crates/payment_methods/Cargo.tomlindex 59a48affc7..5c2006c1ab 100644--- a/crates/payment_methods/Cargo.toml+++ b/crates/payment_methods/Cargo.toml@@ -8,7 +8,7 @@ license.workspace = true[dependencies]actix-multipart = "0.6.2"actix-web = "4.11.0"-async-trait = "0.1.88"+async-trait = "0.1.92"bytes = "1.10.1"csv = "1.3.1"dyn-clone = "1.0.19"diff --git a/crates/pm_auth/Cargo.toml b/crates/pm_auth/Cargo.tomlindex 3086456bf9..37d1eb285b 100644--- a/crates/pm_auth/Cargo.toml+++ b/crates/pm_auth/Cargo.toml@@ -18,7 +18,7 @@ common_utils = { version = "0.1.0", path = "../common_utils" }hyperswitch_masking = "0.0.1"# Third party crates-async-trait = "0.1.88"+async-trait = "0.1.92"bytes = "1.10.1"error-stack = "0.4.1"http = "0.2.12"diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.tomlindex c2155d96a7..395f09f4ae 100644--- a/crates/router/Cargo.toml+++ b/crates/router/Cargo.toml@@ -197,7 +197,7 @@ actix-rt = "2.10.0"actix-web = "4.11.0"argon2 = { version = "0.5.3", features = ["std"] }async-bb8-diesel = "0.2.1"-async-trait = "0.1.88"+async-trait = "0.1.92"base64 = "0.22.1"bb8 = "0.8"heck = "0.5.0"diff --git a/crates/router/src/core/payments/flows/external_proxy_flow.rs b/crates/router/src/core/payments/flows/external_proxy_flow.rsindex 167459bc9b..1ab4ac0c80 100644--- a/crates/router/src/core/payments/flows/external_proxy_flow.rs+++ b/crates/router/src/core/payments/flows/external_proxy_flow.rs@@ -218,7 +218,8 @@ impl Feature<api::ExternalVaultProxy, types::ExternalVaultProxyPaymentsData>_state: &SessionState,_connector: &api::ConnectorData,) -> RouterResult<Self> {- todo!()+ // TODO: Implement external vault proxy postprocessing.+ Ok(self)}async fn create_connector_customer<'a>(diff --git a/crates/router/src/core/payments/flows/psync_flow.rs b/crates/router/src/core/payments/flows/psync_flow.rsindex cf57dc0ee1..68d00f8d9e 100644--- a/crates/router/src/core/payments/flows/psync_flow.rs+++ b/crates/router/src/core/payments/flows/psync_flow.rs@@ -313,7 +313,7 @@ impl RouterDataPSync});},Ok(types::PaymentsResponseData::MultipleCaptureResponse { capture_sync_response_list })=> {- capture_sync_response_map.extend(capture_sync_response_list.into_iter());+ capture_sync_response_map.extend(capture_sync_response_list);}_ => Err(ApiErrorResponse::PreconditionFailed { message: "Response type must be PaymentsResponseData::MultipleCaptureResponse for payment sync".into() })?,};diff --git a/crates/scheduler/Cargo.toml b/crates/scheduler/Cargo.tomlindex 3cb0e981b9..86e5580363 100644--- a/crates/scheduler/Cargo.toml+++ b/crates/scheduler/Cargo.toml@@ -17,7 +17,7 @@ redis-rs = ["redis_interface/redis-rs", "storage_impl/redis-rs"][dependencies]# Third party crates-async-trait = "0.1.88"+async-trait = "0.1.92"error-stack = "0.4.1"futures = "0.3.31"num_cpus = "1.16.0"diff --git a/crates/storage_impl/Cargo.toml b/crates/storage_impl/Cargo.tomlindex 40b61c8705..3f15df2105 100644--- a/crates/storage_impl/Cargo.toml+++ b/crates/storage_impl/Cargo.toml@@ -39,7 +39,7 @@ router_env = { version = "0.1.0", path = "../router_env" }# Third party cratesasync-bb8-diesel = "0.2.1"-async-trait = "0.1.88"+async-trait = "0.1.92"bb8 = "0.8.6"bytes = "1.10.1"config = { version = "0.14.1", features = ["toml"] }diff --git a/crates/subscriptions/Cargo.toml b/crates/subscriptions/Cargo.tomlindex 3ae536039a..c5d3033591 100644--- a/crates/subscriptions/Cargo.toml+++ b/crates/subscriptions/Cargo.toml@@ -6,7 +6,7 @@ rust-version.workspace = truelicense.workspace = true[dependencies]-async-trait = "0.1.88"+async-trait = "0.1.92"dyn-clone = "1.0.19"error-stack = "0.4.1"hyperswitch_masking = "0.0.1"diff --git a/crates/test_utils/Cargo.toml b/crates/test_utils/Cargo.tomlindex 3130b8a077..cccf6d73fd 100644--- a/crates/test_utils/Cargo.toml+++ b/crates/test_utils/Cargo.toml@@ -14,7 +14,7 @@ payouts = [][dependencies]anyhow = "1.0.98"-async-trait = "0.1.88"+async-trait = "0.1.92"base64 = "0.22.1"clap = { version = "4.5.38", default-features = false, features = ["std", "derive", "help", "usage"] }rand = "0.8.5"