From 7910202ecdd28654b01c0c039b00c01edff42916 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 9 Sep 2019 13:23:37 +0300 Subject: tiny simplification --- crates/ra_parser/src/grammar/attributes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_parser/src/grammar/attributes.rs') diff --git a/crates/ra_parser/src/grammar/attributes.rs b/crates/ra_parser/src/grammar/attributes.rs index 20d58445f..e97170203 100644 --- a/crates/ra_parser/src/grammar/attributes.rs +++ b/crates/ra_parser/src/grammar/attributes.rs @@ -1,7 +1,7 @@ use super::*; pub(super) fn inner_attributes(p: &mut Parser) { - while p.current() == T![#] && p.nth(1) == T![!] { + while p.at(T![#]) && p.nth(1) == T![!] { attribute(p, true) } } -- cgit v1.2.3