Skip to content

Commit

Permalink
frequency: explicitly flush wtr
Browse files Browse the repository at this point in the history
just in case... Rust should flush it when wtr goes out of scope, but it's better to be explicit
  • Loading branch information
jqnatividad committed Jan 10, 2024
1 parent 6eec99b commit 5dbde7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/frequency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
wtr.write_record(row)?;
}
}
Ok(())
Ok(wtr.flush()?)
}

type Headers = csv::ByteRecord;
Expand Down

0 comments on commit 5dbde7f

Please sign in to comment.