Apply suggestions from code review
Co-authored-by: kennytm <kennytm@gmail.com>
This commit is contained in:
parent
7779eb74c8
commit
0911069feb
1 changed files with 2 additions and 2 deletions
|
@ -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\"?>")
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue