Skip to content

Commit d64fd22

Browse files
author
Jorge Aparicio
committed
librustc: remove unnecessary as_mut_slice calls
1 parent 5a24058 commit d64fd22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/metadata/cstore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl CStore {
172172
for (&num, _) in self.metas.borrow().iter() {
173173
visit(self, num, &mut ordering);
174174
}
175-
ordering.as_mut_slice().reverse();
175+
ordering.reverse();
176176
let mut libs = self.used_crate_sources.borrow()
177177
.iter()
178178
.map(|src| (src.cnum, match prefer {

src/librustc/session/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ pub fn build_session_options(matches: &getopts::Matches) -> Options {
764764
}
765765
}
766766
};
767-
output_types.as_mut_slice().sort();
767+
output_types.sort();
768768
output_types.dedup();
769769
if output_types.len() == 0 {
770770
output_types.push(OutputTypeExe);

0 commit comments

Comments
 (0)