more clippy::complexity fixes
This commit is contained in:
parent
fbf8b937b4
commit
de59844c98
13 changed files with 23 additions and 41 deletions
|
@ -2313,7 +2313,7 @@ impl FileWithAnnotatedLines {
|
|||
}
|
||||
|
||||
// Find overlapping multiline annotations, put them at different depths
|
||||
multiline_annotations.sort_by_key(|&(_, ref ml)| (ml.line_start, usize::MAX - ml.line_end));
|
||||
multiline_annotations.sort_by_key(|(_, 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