From 5b8753c45ddcef4451f437fcf40242d18285858d Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Tue, 16 Jan 2024 15:45:12 +0100 Subject: [PATCH] get rid of unreachable code --- members/libpt-bin/src/hedu/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/members/libpt-bin/src/hedu/mod.rs b/members/libpt-bin/src/hedu/mod.rs index 9d17e2a..b3308b7 100644 --- a/members/libpt-bin/src/hedu/mod.rs +++ b/members/libpt-bin/src/hedu/mod.rs @@ -126,8 +126,7 @@ fn cli_parse() -> Cli { "WARN" => Level::WARN, "ERROR" => Level::ERROR, _ => { - eprintln!("'{}' is not a valid loglevel", cli.verbose.to_string()); - std::process::exit(1); + unreachable!(); } }; if cli.log_meta {