Skip to content

Commit cfe9c25

Browse files
fix(core): Address clippy config changes (#2654)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent f2f8170 commit cfe9c25

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

crates/router/src/configs/settings.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -491,17 +491,17 @@ impl From<QueueStrategy> for bb8::QueueStrategy {
491491
}
492492

493493
#[cfg(not(feature = "kms"))]
494-
impl Into<storage_impl::config::Database> for Database {
495-
fn into(self) -> storage_impl::config::Database {
496-
storage_impl::config::Database {
497-
username: self.username,
498-
password: self.password,
499-
host: self.host,
500-
port: self.port,
501-
dbname: self.dbname,
502-
pool_size: self.pool_size,
503-
connection_timeout: self.connection_timeout,
504-
queue_strategy: self.queue_strategy.into(),
494+
impl From<Database> for storage_impl::config::Database {
495+
fn from(val: Database) -> Self {
496+
Self {
497+
username: val.username,
498+
password: val.password,
499+
host: val.host,
500+
port: val.port,
501+
dbname: val.dbname,
502+
pool_size: val.pool_size,
503+
connection_timeout: val.connection_timeout,
504+
queue_strategy: val.queue_strategy.into(),
505505
}
506506
}
507507
}

0 commit comments

Comments
 (0)