]> git.lizzy.rs Git - rust.git/blobdiff - library/alloc/src/slice.rs
Cleanup closures.
[rust.git] / library / alloc / src / slice.rs
index bcd3f49e208928b9119ac40af6d3a822dddf7f3a..8c9783fe19430f1c8911c29b14263826eb32a6a3 100644 (file)
@@ -205,7 +205,7 @@ pub fn sort(&mut self)
     where
         T: Ord,
     {
-        merge_sort(self, |a, b| a.lt(b));
+        merge_sort(self, T::lt);
     }
 
     /// Sorts the slice with a comparator function.