aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar/attributes.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-09-09 11:24:27 +0100
committerGitHub <[email protected]>2019-09-09 11:24:27 +0100
commit76f39b4b20d32b67fb60220e9d2a6ceb3f44fbb7 (patch)
tree3b74e8bcb8a88801f1ff8fc2d65bd4a0727b24fa /crates/ra_parser/src/grammar/attributes.rs
parent734a43e95afc97773c234956a95b78caed88f2a3 (diff)
parent7910202ecdd28654b01c0c039b00c01edff42916 (diff)
Merge #1794
1794: tiny simplification r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_parser/src/grammar/attributes.rs')
-rw-r--r--crates/ra_parser/src/grammar/attributes.rs2
1 files changed, 1 insertions, 1 deletions
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 @@
1use super::*; 1use super::*;
2 2
3pub(super) fn inner_attributes(p: &mut Parser) { 3pub(super) fn inner_attributes(p: &mut Parser) {
4 while p.current() == T![#] && p.nth(1) == T![!] { 4 while p.at(T![#]) && p.nth(1) == T![!] {
5 attribute(p, true) 5 attribute(p, true)
6 } 6 }
7} 7}