Clean up surprising borrow

This commit is contained in:
Dániel Buga 2020-10-14 10:43:51 +02:00
parent 8850893d96
commit 6f43af26e9

View File

@ -458,8 +458,8 @@ fn create_and_seed_worklist<'tcx>(
.map .map
.iter() .iter()
.filter_map( .filter_map(
|(&id, level)| { |(&id, &level)| {
if level >= &privacy::AccessLevel::Reachable { Some(id) } else { None } if level >= privacy::AccessLevel::Reachable { Some(id) } else { None }
}, },
) )
.chain( .chain(