diff --git a/src/main.rs b/src/main.rs index a5c051b..8e7bea1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,7 +42,7 @@ struct Args { fn main() -> Result<(), Box> { let args = Args::parse(); - if let Some(log_to) = args.log_to { + if let Some(ref log_to) = args.log_to { flexi_logger::Logger::try_with_env_or_str("info")? .log_to_file(FileSpec::default().directory(&log_to)) .log_to_stdout()