Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: kennytm <kennytm@gmail.com>
  • Loading branch information
yaahc and kennytm authored Sep 27, 2021
1 parent 7779eb7 commit 0911069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/test/src/formatters/junit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl<T: Write> JunitFormatter<T> {
impl<T: Write> OutputFormatter for JunitFormatter<T> {
fn write_run_start(&mut self, _test_count: usize) -> io::Result<()> {
// We write xml header on run start
self.out.write_all("\n".as_bytes())?;
self.out.write_all(b"\n")?;
self.write_message("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
}

Expand Down Expand Up @@ -134,7 +134,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
self.write_message("</testsuite>")?;
self.write_message("</testsuites>")?;

self.out.write_all("\n\n".as_bytes())?;
self.out.write_all(b"\n\n")?;

Ok(state.failed == 0)
}
Expand Down

0 comments on commit 0911069

Please sign in to comment.