Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
augustelalande committed Sep 5, 2024
1 parent 94d2303 commit a168d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ruff_linter/src/rules/ruff/rules/unreachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub(crate) fn in_function(name: &Identifier, body: &[Stmt]) -> Vec<Diagnostic> {

// Combine sequential unreachable blocks
let mut blocks = basic_blocks.blocks.raw;
blocks.sort_by(|a, b| a.start().to_u32().cmp(&b.start().to_u32()));
blocks.sort_by_key(|a| a.start().to_u32());
let mut start = None;
let mut end = None;
for block in blocks {
Expand Down

0 comments on commit a168d97

Please sign in to comment.