diff options
| author | raldone01 <raldone01@gmail.com> | 2022-09-14 20:11:45 +0200 |
|---|---|---|
| committer | raldone01 <raldone01@gmail.com> | 2022-09-14 20:11:45 +0200 |
| commit | 59fe291cec5b4ac80a9770dd3af63264f3a1b54b (patch) | |
| tree | 72f0020f1eecddf097230b471895512dcf9c2565 /library/alloc/src | |
| parent | a92669638461836f41f54f95e396f9082bb91391 (diff) | |
| download | rust-59fe291cec5b4ac80a9770dd3af63264f3a1b54b.tar.gz rust-59fe291cec5b4ac80a9770dd3af63264f3a1b54b.zip | |
Cleanup closures.
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. |
