Просмотр исходного кода

cashierd: Fix stable compilation.

parazyd 4 лет назад
Родитель
Сommit
e0881eb166
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      bin/cashierd/src/main.rs

+ 1 - 5
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::<CashierdConfig>::load(config_path)?;