From 517e79adb2f29a1b3b97a35a7489784c4d8bac06 Mon Sep 17 00:00:00 2001 From: trivernis Date: Tue, 24 Nov 2020 12:41:09 +0100 Subject: [PATCH] Change output file to open in append mode Signed-off-by: trivernis --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7388144..31fab19 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,7 +46,7 @@ fn calculate_primes(prime_opts: CalculatePrimes, controller: KernelController) - let output = BufWriter::new( OpenOptions::new() .create(true) - .write(true) + .append(true) .open(prime_opts.output_file) .unwrap(), );