mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-01-08 16:15:39 +00:00
Fix clippy errors
This commit is contained in:
parent
5ea2c802c2
commit
6af1b8572c
2 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ impl DatabaseSettings {
|
||||||
PgConnectOptions::new()
|
PgConnectOptions::new()
|
||||||
.host(&self.host)
|
.host(&self.host)
|
||||||
.username(&self.username)
|
.username(&self.username)
|
||||||
.password(&self.password.expose_secret())
|
.password(self.password.expose_secret())
|
||||||
.port(self.port)
|
.port(self.port)
|
||||||
.ssl_mode(ssl_mode)
|
.ssl_mode(ssl_mode)
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn names_containing_an_invalid_character_are_rejected() {
|
fn names_containing_an_invalid_character_are_rejected() {
|
||||||
for name in vec!['/', '(', ')', '"', '<', '>', '\\', '{', '}'] {
|
for name in &['/', '(', ')', '"', '<', '>', '\\', '{', '}'] {
|
||||||
let name = name.to_string();
|
let name = name.to_string();
|
||||||
assert_err!(SubscriberName::parse(name));
|
assert_err!(SubscriberName::parse(name));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue