mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-04 19:12:50 +00:00
Fix checkstyle test.
The only reason it passed before was due to a bug in the `diff` crate. The diff was empty even though the contents of the files were different -- namely one string had a trailing newline character while the other didn't. Now both have a trailing newline character.
This commit is contained in:
parent
02c024932c
commit
d0df53d833
@ -33,7 +33,7 @@ where
|
||||
{
|
||||
if mode == WriteMode::Checkstyle {
|
||||
let mut xml_tail = String::new();
|
||||
xml_tail.push_str("</checkstyle>");
|
||||
xml_tail.push_str("</checkstyle>\n");
|
||||
write!(out, "{}", xml_tail)?;
|
||||
}
|
||||
Ok(())
|
||||
|
Loading…
Reference in New Issue
Block a user