]> git.lizzy.rs Git - rust.git/commitdiff
librustdoc: remove unnecessary `as_mut_slice` calls
authorJorge Aparicio <japaricious@gmail.com>
Thu, 27 Nov 2014 21:49:29 +0000 (16:49 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sun, 7 Dec 2014 04:53:01 +0000 (23:53 -0500)
src/librustdoc/html/render.rs

index 79ab452dba626ba48e516dbe6f96e9a2498259a7..dab25c3b2ee59e2fc3d534e3845ddf00bdd2031a 100644 (file)
@@ -1261,7 +1261,7 @@ fn build_sidebar(&self, m: &clean::Module) -> HashMap<String, Vec<String>> {
         }
 
         for (_, items) in map.iter_mut() {
-            items.as_mut_slice().sort();
+            items.sort();
         }
         return map;
     }