From 43063e600ffd982963e20ae013f77837fd3af87f Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Fri, 25 Feb 2022 15:33:03 +0100 Subject: [PATCH] oh --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9fb094b..771e2a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ impl EventHandler for Handler { #[tokio::main] async fn main() { - let file_path = std::env::var("CONFIG_PATH").unwrap_or_else(|| "./config.json".to_string()); + let file_path = std::env::var("CONFIG_PATH").unwrap_or_else(|_| "./config.json".to_string()); println!("reading config from {file_path}"); let file = fs::read_to_string(file_path).unwrap(); let config = serde_json::from_str::(&file).unwrap();