Skip to content

Commit 557feab

Browse files
authored
Merge pull request #7 from steffahn/use_unstable_sort
Follow a clippy hint to use unstable sort in empty_random
2 parents 04e34b5 + e25eebd commit 557feab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ where
280280
// we need to sort the indices so that, later, we can make sure to swap remove from last to
281281
// first (and so not accidentally remove the wrong index).
282282
let mut to_remove = indices.clone().into_vec();
283-
to_remove.sort();
283+
to_remove.sort_unstable();
284284
self.add_op(Operation::EmptyAt(to_remove));
285285

286286
indices.into_iter().map(move |i| {

0 commit comments

Comments
 (0)