Include match in nested block check (#3137)

This commit is contained in:
Charlie Marsh 2023-02-22 14:32:08 -05:00 committed by GitHub
parent 4ad4e3e091
commit 17ab71ff75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,6 +206,7 @@ pub fn in_nested_block<'a>(mut parents: impl Iterator<Item = &'a Stmt>) -> bool
| StmtKind::TryStar { .. }
| StmtKind::If { .. }
| StmtKind::With { .. }
| StmtKind::Match { .. }
)
})
}