Change output file to open in append mode

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/1/head
trivernis 4 years ago
parent 38f3932969
commit 517e79adb2
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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(),
);

Loading…
Cancel
Save