Adopt let else in more places
This commit is contained in:
parent
b8c56fa8c3
commit
2ef8af6619
132 changed files with 539 additions and 881 deletions
|
@ -524,9 +524,8 @@ impl<'a> Parser<'a> {
|
|||
// Skip looking for a trailing semicolon when we have an interpolated statement.
|
||||
maybe_whole!(self, NtStmt, |x| Some(x));
|
||||
|
||||
let mut stmt = match self.parse_stmt_without_recovery(true, ForceCollect::No)? {
|
||||
Some(stmt) => stmt,
|
||||
None => return Ok(None),
|
||||
let Some(mut stmt) = self.parse_stmt_without_recovery(true, ForceCollect::No)? else {
|
||||
return Ok(None);
|
||||
};
|
||||
|
||||
let mut eat_semi = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue