1
Fork 0

Conver reborrows to .iter() calls where appropriate

This commit is contained in:
Joshua Landau 2015-06-11 13:56:07 +01:00
parent ca7418b846
commit d7f5fa4636
47 changed files with 109 additions and 109 deletions

View file

@ -471,7 +471,7 @@ fn build_index(krate: &clean::Crate, cache: &mut Cache) -> io::Result<String> {
// Reduce `NodeId` in paths into smaller sequential numbers,
// and prune the paths that do not appear in the index.
for item in &*search_index {
for item in search_index.iter() {
match item.parent {
Some(nodeid) => {
if !nodeid_to_pathid.contains_key(&nodeid) {