From 6af1b8572c80c40f16ab7fb420256f19c636d7ea Mon Sep 17 00:00:00 2001 From: Luca Palmieri Date: Tue, 28 Dec 2021 17:49:30 +0100 Subject: [PATCH] Fix clippy errors --- src/configuration.rs | 2 +- src/domain/subscriber_name.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configuration.rs b/src/configuration.rs index 54b4700..cbf1570 100644 --- a/src/configuration.rs +++ b/src/configuration.rs @@ -40,7 +40,7 @@ impl DatabaseSettings { PgConnectOptions::new() .host(&self.host) .username(&self.username) - .password(&self.password.expose_secret()) + .password(self.password.expose_secret()) .port(self.port) .ssl_mode(ssl_mode) } diff --git a/src/domain/subscriber_name.rs b/src/domain/subscriber_name.rs index b3c6540..f3c0e77 100644 --- a/src/domain/subscriber_name.rs +++ b/src/domain/subscriber_name.rs @@ -72,7 +72,7 @@ mod tests { #[test] fn names_containing_an_invalid_character_are_rejected() { - for name in vec!['/', '(', ')', '"', '<', '>', '\\', '{', '}'] { + for name in &['/', '(', ')', '"', '<', '>', '\\', '{', '}'] { let name = name.to_string(); assert_err!(SubscriberName::parse(name)); }