From cfe9c2529e3c16f4d43df37f6357c70f7ca39aa6 Mon Sep 17 00:00:00 2001 From: Pa1NarK <69745008+pixincreate@users.noreply.github.com> Date: Wed, 25 Oct 2023 15:09:03 +0530 Subject: [PATCH] fix(core): Address clippy config changes (#2654) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- crates/router/src/configs/settings.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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 for bb8::QueueStrategy { } #[cfg(not(feature = "kms"))] -impl Into 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 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(), } } }