librustdoc: use tuple indexing

This commit is contained in:
Jorge Aparicio
2014-12-09 12:58:15 -05:00
parent 0c5d22c9cd
commit e792338318
4 changed files with 7 additions and 7 deletions

View File

@@ -400,7 +400,7 @@ fn rust_input(cratefile: &str, externs: core::Externs, matches: &getopts::Matche
.position(|&(p, _, _)| {
p == *pass
}) {
Some(i) => PASSES[i].val1(),
Some(i) => PASSES[i].1,
None => {
error!("unknown pass {}, skipping", *pass);
continue