mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Lintcheck: Remove empty lines from rendered CI output
This commit is contained in:
parent
09906b8221
commit
83c8385ad1
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ fn print_warnings(title: &str, warnings: &[LintJson]) {
|
|||
println!("{title} `{}` at {}", warning.lint, warning.file_link);
|
||||
println!();
|
||||
println!("```");
|
||||
print!("{}", warning.rendered);
|
||||
println!("{}", warning.rendered.trim_end());
|
||||
println!("```");
|
||||
println!();
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ fn print_changed_diff(changed: &[(LintJson, LintJson)]) {
|
|||
println!("Changed `{}` at {}", new.lint, new.file_link);
|
||||
println!();
|
||||
println!("```diff");
|
||||
for change in diff::lines(&old.rendered, &new.rendered) {
|
||||
for change in diff::lines(old.rendered.trim_end(), new.rendered.trim_end()) {
|
||||
use diff::Result::{Both, Left, Right};
|
||||
|
||||
match change {
|
||||
|
|
Loading…
Reference in a new issue