From a736960def61ef3c202a03f37aef6f4fa08b5580 Mon Sep 17 00:00:00 2001 From: nils <48135649+Nilstrieb@users.noreply.github.com> Date: Fri, 25 Feb 2022 15:51:48 +0100 Subject: [PATCH] fix --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0587175..ac52042 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,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 = match fs::read_to_string(file_path).unwrap_or_else(|err| { + let file = fs::read_to_string(file_path).unwrap_or_else(|err| { eprintln!("Error reading config file ({file_path}): {err}"); std::process::exit(1); });