We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7779eb7 commit 0911069Copy full SHA for 0911069
library/test/src/formatters/junit.rs
@@ -29,7 +29,7 @@ impl<T: Write> JunitFormatter<T> {
29
impl<T: Write> OutputFormatter for JunitFormatter<T> {
30
fn write_run_start(&mut self, _test_count: usize) -> io::Result<()> {
31
// We write xml header on run start
32
- self.out.write_all("\n".as_bytes())?;
+ self.out.write_all(b"\n")?;
33
self.write_message("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
34
}
35
@@ -134,7 +134,7 @@ impl<T: Write> OutputFormatter for JunitFormatter<T> {
134
self.write_message("</testsuite>")?;
135
self.write_message("</testsuites>")?;
136
137
- self.out.write_all("\n\n".as_bytes())?;
+ self.out.write_all(b"\n\n")?;
138
139
Ok(state.failed == 0)
140
0 commit comments