Simplify some nested if statements
This commit is contained in:
@@ -671,12 +671,12 @@ impl<'a> Parser<'a> {
|
||||
err.emit();
|
||||
continue;
|
||||
}
|
||||
if !self.token.kind.should_end_const_arg() {
|
||||
if self.handle_ambiguous_unbraced_const_arg(&mut args)? {
|
||||
// We've managed to (partially) recover, so continue trying to parse
|
||||
// arguments.
|
||||
continue;
|
||||
}
|
||||
if !self.token.kind.should_end_const_arg()
|
||||
&& self.handle_ambiguous_unbraced_const_arg(&mut args)?
|
||||
{
|
||||
// We've managed to (partially) recover, so continue trying to parse
|
||||
// arguments.
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user