Tidy up the grammar #94

This commit is contained in:
2026-06-28 07:30:49 +02:00
parent 3c6ebb66c6
commit 64081bc494
5 changed files with 3 additions and 20 deletions
-6
View File
@@ -317,12 +317,6 @@ impl GetMutability for Expression {
// Recurse into all postfix sub-expressions
for postfix in postfixes {
match postfix {
Postfix::Assign(_, rhs) => {
if let Some(self_ref) = get_self_ref(initial, postfixes) {
result.push(self_ref);
}
result.append(&mut rhs.get_mutability());
}
Postfix::Call(args) => {
for arg in args {
result.append(&mut arg.get_mutability());