Tweak output
This commit is contained in:
parent
ab04080b56
commit
6f64432a39
4 changed files with 20 additions and 24 deletions
|
@ -2282,7 +2282,7 @@ impl FileWithAnnotatedLines {
|
|||
}
|
||||
|
||||
// Find overlapping multiline annotations, put them at different depths
|
||||
multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, ml.line_end));
|
||||
multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, usize::MAX - ml.line_end));
|
||||
for (_, ann) in multiline_annotations.clone() {
|
||||
for (_, a) in multiline_annotations.iter_mut() {
|
||||
// Move all other multiline annotations overlapping with this one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue