Skip to content

Commit b248bf9

Browse files
committed
Fix clippy::stable_sort_primitive
1 parent 7f950ae commit b248bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/twosat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ mod tests {
7575
}
7676

7777
//Check the min distance between flags
78-
res.sort();
78+
res.sort_unstable();
7979
let mut min_distance = i32::max_value();
8080
for i in 1..res.len() {
8181
min_distance = std::cmp::min(min_distance, res[i] - res[i - 1]);

0 commit comments

Comments
 (0)