diff options
Diffstat (limited to 'lib/warden-core/src/config')
| -rw-r--r-- | lib/warden-core/src/config/cli/database.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/warden-core/src/config/cli/database.rs b/lib/warden-core/src/config/cli/database.rs index 31ba930..70bf600 100644 --- a/lib/warden-core/src/config/cli/database.rs +++ b/lib/warden-core/src/config/cli/database.rs @@ -117,7 +117,7 @@ impl Database { } let host = "localhost".to_owned(); - let host = self.database_host.as_ref().unwrap_or_else(|| &host); + let host = self.database_host.as_ref().unwrap_or(&host); let mut url = Url::parse(&format!("postgres://{host}"))?; if let Some(ref u) = self.database_username { |
