Skip to content

Commit 0911069

Browse files
yaahckennytm
andauthored
Apply suggestions from code review
Co-authored-by: kennytm <[email protected]>
1 parent 7779eb7 commit 0911069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/test/src/formatters/junit.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl<T: Write> JunitFormatter<T> {
2929
impl<T: Write> OutputFormatter for JunitFormatter<T> {
3030
fn write_run_start(&mut self, _test_count: usize) -> io::Result<()> {
3131
// We write xml header on run start
32-
self.out.write_all("\n".as_bytes())?;
32+
self.out.write_all(b"\n")?;
3333
self.write_message("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
3434
}
3535

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

137-
self.out.write_all("\n\n".as_bytes())?;
137+
self.out.write_all(b"\n\n")?;
138138

139139
Ok(state.failed == 0)
140140
}

0 commit comments

Comments
 (0)