mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
minor: parser cleanup
This commit is contained in:
parent
c72a30af63
commit
ec2043a082
2 changed files with 20 additions and 21 deletions
|
@ -183,6 +183,7 @@ fn opt_visibility(p: &mut Parser) -> bool {
|
|||
}
|
||||
}
|
||||
m.complete(p, VISIBILITY);
|
||||
true
|
||||
}
|
||||
// test crate_keyword_vis
|
||||
// crate fn main() { }
|
||||
|
@ -197,10 +198,10 @@ fn opt_visibility(p: &mut Parser) -> bool {
|
|||
let m = p.start();
|
||||
p.bump(T![crate]);
|
||||
m.complete(p, VISIBILITY);
|
||||
true
|
||||
}
|
||||
_ => return false,
|
||||
_ => false,
|
||||
}
|
||||
true
|
||||
}
|
||||
|
||||
fn opt_rename(p: &mut Parser) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue