Skip to content

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

fix(core): Address clippy config changes (#2654)

Pa1NarKcfe9c2529e3c
diff --git a/crates/router/src/configs/settings.rs b/crates/router/src/configs/settings.rs
index 365b64843f..b2c27ed398 100644
--- a/crates/router/src/configs/settings.rs
+++ b/crates/router/src/configs/settings.rs
@@ -491,17 +491,17 @@ impl From<QueueStrategy> for bb8::QueueStrategy {
}
#[cfg(not(feature = "kms"))]
-impl Into<storage_impl::config::Database> for Database {
- fn into(self) -> storage_impl::config::Database {
- storage_impl::config::Database {
- username: self.username,
- password: self.password,
- host: self.host,
- port: self.port,
- dbname: self.dbname,
- pool_size: self.pool_size,
- connection_timeout: self.connection_timeout,
- queue_strategy: self.queue_strategy.into(),
+impl From<Database> for storage_impl::config::Database {
+ fn from(val: Database) -> Self {
+ Self {
+ username: val.username,
+ password: val.password,
+ host: val.host,
+ port: val.port,
+ dbname: val.dbname,
+ pool_size: val.pool_size,
+ connection_timeout: val.connection_timeout,
+ queue_strategy: val.queue_strategy.into(),
}
}
}