From f19a82beac18b688faa5cdb1a355485d2e429b60 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 8 Sep 2018 19:16:11 +0300 Subject: simplify --- crates/libsyntax2/src/parser_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/libsyntax2/src/parser_api.rs b/crates/libsyntax2/src/parser_api.rs index 7d97159dd..772d753af 100644 --- a/crates/libsyntax2/src/parser_api.rs +++ b/crates/libsyntax2/src/parser_api.rs @@ -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(); -- cgit v1.2.3