Skip to content

Commit

Permalink
PR review 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ville Lindholm committed Mar 19, 2023
1 parent 04a29bb commit a062a03
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/ruff/src/autofix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ fn cmp_fix(rule1: Rule, rule2: Rule, fix1: &Fix, fix2: &Fix) -> std::cmp::Orderi
// Apply `EndsInPeriod` fixes before `NewLineAfterLastParagraph` fixes.
(Rule::EndsInPeriod, Rule::NewLineAfterLastParagraph) => std::cmp::Ordering::Less,
(Rule::NewLineAfterLastParagraph, Rule::EndsInPeriod) => std::cmp::Ordering::Greater,
// Apply `UnderIndentation` fixes before `InvalidEscapeSequence` fixes.
(Rule::UnderIndentation, Rule::InvalidEscapeSequence) => std::cmp::Ordering::Less,
(Rule::InvalidEscapeSequence, Rule::UnderIndentation) => std::cmp::Ordering::Greater,
_ => std::cmp::Ordering::Equal,
})
}
Expand Down

0 comments on commit a062a03

Please sign in to comment.