Clean up unneeded '&'s.

This commit is contained in:
Dan Gohman
2017-09-21 14:50:28 -07:00
parent 8deca67968
commit 14d6d1117d
3 changed files with 4 additions and 4 deletions

View File

@@ -96,7 +96,7 @@ impl SubTest for TestDomtree {
// Now we know that everything in `expected` is consistent with `domtree`.
// All other EBB's should be either unreachable or the entry block.
for ebb in func.layout.ebbs().skip(1).filter(
|ebb| !expected.contains_key(&ebb),
|ebb| !expected.contains_key(ebb),
)
{
if let Some(got_inst) = domtree.idom(ebb) {