Skip to content

Commit fd32b5b

Browse files
committed
Fix lint
1 parent c2421b9 commit fd32b5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/node/src/patcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl JsonPatcher {
153153

154154
// Sort descending by start position
155155
let mut sorted: Vec<&Patch> = patches.iter().collect();
156-
sorted.sort_by(|a, b| b.start.cmp(&a.start));
156+
sorted.sort_by_key(|p| std::cmp::Reverse(p.start));
157157

158158
// Check for overlapping patches
159159
for window in sorted.windows(2) {

0 commit comments

Comments
 (0)