Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/mir/borrowck.rs')
-rw-r--r--crates/hir-ty/src/mir/borrowck.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/hir-ty/src/mir/borrowck.rs b/crates/hir-ty/src/mir/borrowck.rs
index fb0c0dee09..52df851c30 100644
--- a/crates/hir-ty/src/mir/borrowck.rs
+++ b/crates/hir-ty/src/mir/borrowck.rs
@@ -559,10 +559,9 @@ fn mutability_of_locals(
},
p,
) = value
+ && place_case(db, body, p) != ProjectionCase::Indirect
{
- if place_case(db, body, p) != ProjectionCase::Indirect {
- push_mut_span(p.local, statement.span, &mut result);
- }
+ push_mut_span(p.local, statement.span, &mut result);
}
}
StatementKind::FakeRead(p) => {