From f8fbc7f0c47d83576e6a59da4b2ea0cc1b4cbd76 Mon Sep 17 00:00:00 2001 From: Alexander Mironov Date: Sun, 23 Jan 2022 15:32:26 +0300 Subject: [PATCH] Fix --output option --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 251ef39..2300454 100644 --- a/src/main.rs +++ b/src/main.rs @@ -396,7 +396,7 @@ async fn run() { let file = if config.append { file.write(true).append(true) } else { - file.write(true) + file.write(true).truncate(true) }; let mut file = match file.open(&config.output_file) {