mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
simplify
This commit is contained in:
parent
ba4a697d8c
commit
f19a82beac
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ impl<'t> Parser<'t> {
|
|||
pub(crate) fn err_recover(&mut self, message: &str, recovery: TokenSet) {
|
||||
if self.at(SyntaxKind::L_CURLY)
|
||||
|| self.at(SyntaxKind::R_CURLY)
|
||||
|| recovery.contains(self.current()) {
|
||||
|| self.at_ts(recovery) {
|
||||
self.error(message);
|
||||
} else {
|
||||
let m = self.start();
|
||||
|
|
Loading…
Reference in a new issue