Remove BorrowKind glob, make names longer

This commit is contained in:
Michael Goulet 2024-11-03 22:02:31 +00:00
parent b14362f665
commit efeed550c4
6 changed files with 10 additions and 10 deletions

View file

@ -67,7 +67,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 bk == ty::BorrowKind::MutBorrow {
if bk == ty::BorrowKind::Mutable {
self.update(cmt);
}
}