From 21be30c264a9325de90afa405e0c8a3bf7a04a91 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 20 Jul 2023 18:34:41 +1000 Subject: [PATCH] Fix compile error --- watch/tests/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch/tests/tests.rs b/watch/tests/tests.rs index 6e134f052a0..28700ccdce7 100644 --- a/watch/tests/tests.rs +++ b/watch/tests/tests.rs @@ -78,7 +78,7 @@ pub async fn create_test_database(config: &DatabaseConfig) { } pub fn get_host_from_env() -> String { - env::var(WATCH_HOST_ENV_VARIABLE).unwrap_or_else(|| "localhost".to_string()) + env::var(WATCH_HOST_ENV_VARIABLE).unwrap_or_else(|_| "localhost".to_string()) } struct TesterBuilder {