Fix clippy errors

This commit is contained in:
Luca Palmieri 2021-12-28 17:48:23 +01:00
parent d6067b8885
commit 5292de1c5c
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,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)
}

View file

@ -77,7 +77,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));
}