Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Sep 29, 2023
1 parent 62f8e62 commit 17ed9fe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mir-state-analysis/src/utils/repacker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,12 @@ impl<'tcx> Place<'tcx> {
let mut projects_shared_ref = false;
self.projects_ty(
|typ| {
projects_shared_ref = projects_shared_ref || typ.ty
.ref_mutability()
.map(|m| m.is_not())
.unwrap_or_default();
projects_shared_ref = projects_shared_ref
|| typ
.ty
.ref_mutability()
.map(|m| m.is_not())
.unwrap_or_default();
projects_shared_ref = projects_shared_ref && !typ.ty.is_unsafe_ptr();
false
},
Expand Down

0 comments on commit 17ed9fe

Please sign in to comment.