Merge pull request #2998 from ReapOmen/fix-rustfmt-diff-output
Change `print_diff` to output the correct line number.
This commit is contained in:
commit
f5f64b3b4a
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ where
|
|||
let mut writer = OutputWriter::new(color);
|
||||
|
||||
for mismatch in diff {
|
||||
let title = get_section_title(mismatch.line_number);
|
||||
let title = get_section_title(mismatch.line_number_orig);
|
||||
writer.writeln(&title, None);
|
||||
|
||||
for line in mismatch.lines {
|
||||
|
|
Loading…
Reference in a new issue