From e0881eb16666539dbbd83bceca9b4a5e016b887c Mon Sep 17 00:00:00 2001 From: parazyd Date: Mon, 21 Feb 2022 08:56:13 +0100 Subject: [PATCH] cashierd: Fix stable compilation. --- bin/cashierd/src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/cashierd/src/main.rs b/bin/cashierd/src/main.rs index 8616ba1ee..eb3fa5a3f 100644 --- a/bin/cashierd/src/main.rs +++ b/bin/cashierd/src/main.rs @@ -682,11 +682,7 @@ async fn main() -> Result<()> { // Spawn config file if it's not in place already. spawn_config(&config_path, CONFIG_FILE_CONTENTS)?; - let conf: simplelog::Config; - let lvl: LevelFilter; - - (lvl, conf) = log_config(matches)?; - + let (lvl, conf) = log_config(matches)?; TermLogger::init(lvl, conf, TerminalMode::Mixed, ColorChoice::Auto)?; let config: CashierdConfig = Config::::load(config_path)?;