From 59fe291cec5b4ac80a9770dd3af63264f3a1b54b Mon Sep 17 00:00:00 2001 From: raldone01 Date: Wed, 14 Sep 2022 20:11:45 +0200 Subject: Cleanup closures. --- library/alloc/src/slice.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/alloc/src') 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] { where T: Ord, { - merge_sort(self, |a, b| a.lt(b)); + merge_sort(self, T::lt); } /// Sorts the slice with a comparator function. -- cgit 1.4.1-3-g733a5