diff --git a/src/main.rs b/src/main.rs index 896f1ed..b03dfdd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -254,7 +254,8 @@ async fn init() -> Result<(), Box> { .parse_output(&config); if output_file.is_some() { - output_file.unwrap().write_all(output.as_bytes()).await?; + output_file.as_mut().unwrap().write_all(output.as_bytes()).await?; + output_file.as_mut().unwrap().flush().await?; } write!(io::stdout(), "\n{}", output).ok();