mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 04:15:08 +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) {
|
pub(crate) fn err_recover(&mut self, message: &str, recovery: TokenSet) {
|
||||||
if self.at(SyntaxKind::L_CURLY)
|
if self.at(SyntaxKind::L_CURLY)
|
||||||
|| self.at(SyntaxKind::R_CURLY)
|
|| self.at(SyntaxKind::R_CURLY)
|
||||||
|| recovery.contains(self.current()) {
|
|| self.at_ts(recovery) {
|
||||||
self.error(message);
|
self.error(message);
|
||||||
} else {
|
} else {
|
||||||
let m = self.start();
|
let m = self.start();
|
||||||
|
|
Loading…
Reference in a new issue