Avoid unnecessary '&' in matches.

https://github.com/rust-lang-nursery/rust-clippy/wiki#match_ref_pats
This commit is contained in:
Dan Gohman
2017-08-31 11:46:05 -07:00
parent acf4f1009b
commit 9a8f01b832
4 changed files with 16 additions and 16 deletions

View File

@@ -169,7 +169,7 @@ impl<'a> Verifier<'a> {
seen.insert(gv);
let mut cur = gv;
while let &ir::GlobalVarData::Deref { base, .. } = &self.func.global_vars[cur] {
while let ir::GlobalVarData::Deref { base, .. } = self.func.global_vars[cur] {
if seen.insert(base).is_some() {
return err!(gv, "deref cycle: {}", DisplayList(seen.as_slice()));
}