Skip to content

Commit 2bcb0d1

Browse files
authored
Merge pull request #73 from qryxip/clippy
Fix `clippy::stable_sort_primitive`
2 parents 7f950ae + b248bf9 commit 2bcb0d1

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)