Skip to content

Commit

Permalink
Update charon/src/ast/expressions_utils.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Nadrieril <[email protected]>
  • Loading branch information
sonmarcho and Nadrieril authored Nov 12, 2024
1 parent afbc7e6 commit 97c750b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions charon/src/ast/expressions_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ impl Place {
}
}
Index { ty, .. } | Subslice { ty, .. } => {
// We could check that that the current type is compatible with
// the type of the
let cur_ty = cur_ty.as_array_or_slice().ok_or(())?;
let ty = ty.as_array_or_slice().ok_or(())?;
// Sanity check: ensure we're using the same types.
if cur_ty == ty {
ty.clone()
} else {
Expand Down

0 comments on commit 97c750b

Please sign in to comment.