diff options
| author | bors <bors@rust-lang.org> | 2022-09-18 06:03:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-18 06:03:22 +0000 |
| commit | 4c2e500788cb3875f90eedb0791b76bcbb91d758 (patch) | |
| tree | 76edaf4afe99e73e8298f4879d3e10e37a5a11eb /library/alloc/src | |
| parent | 65c16dc3a83e34de0360c4667a0dac7f0e217e2b (diff) | |
| parent | 59fe291cec5b4ac80a9770dd3af63264f3a1b54b (diff) | |
| download | rust-4c2e500788cb3875f90eedb0791b76bcbb91d758.tar.gz rust-4c2e500788cb3875f90eedb0791b76bcbb91d758.zip | |
Auto merge of #101816 - raldone01:cleanup/select_nth_unstable, r=Mark-Simulacrum
Cleanup slice sort related closures in core and alloc
Diffstat (limited to 'library/alloc/src')
| -rw-r--r-- | library/alloc/src/slice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs index bcd3f49e208..8c9783fe194 100644 --- a/library/alloc/src/slice.rs +++ b/library/alloc/src/slice.rs @@ -205,7 +205,7 @@ impl<T> [T] { where T: Ord, { - merge_sort(self, |a, b| a.lt(b)); + merge_sort(self, T::lt); } /// Sorts the slice with a comparator function. |
