Merge commit 'b7f3f7f6082679da2da9a0b3faf1b5adef3afd3b' into clippyup
This commit is contained in:
@@ -65,7 +65,7 @@ impl<'tcx> Delegate<'tcx> for MutVarsDelegate {
|
||||
fn consume(&mut self, _: &PlaceWithHirId<'tcx>, _: HirId) {}
|
||||
|
||||
fn borrow(&mut self, cmt: &PlaceWithHirId<'tcx>, _: HirId, bk: ty::BorrowKind) {
|
||||
if let ty::BorrowKind::MutBorrow = bk {
|
||||
if bk == ty::BorrowKind::MutBorrow {
|
||||
self.update(cmt);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user