mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Run cargo fix --edition-idioms
This commit is contained in:
parent
23d25a3094
commit
816f7fe12a
230 changed files with 888 additions and 888 deletions
|
@ -1,18 +1,18 @@
|
|||
use super::*;
|
||||
|
||||
pub(super) fn inner_attrs(p: &mut Parser) {
|
||||
pub(super) fn inner_attrs(p: &mut Parser<'_>) {
|
||||
while p.at(T![#]) && p.nth(1) == T![!] {
|
||||
attr(p, true);
|
||||
}
|
||||
}
|
||||
|
||||
pub(super) fn outer_attrs(p: &mut Parser) {
|
||||
pub(super) fn outer_attrs(p: &mut Parser<'_>) {
|
||||
while p.at(T![#]) {
|
||||
attr(p, false);
|
||||
}
|
||||
}
|
||||
|
||||
fn attr(p: &mut Parser, inner: bool) {
|
||||
fn attr(p: &mut Parser<'_>, inner: bool) {
|
||||
assert!(p.at(T![#]));
|
||||
|
||||
let attr = p.start();
|
||||
|
@ -34,7 +34,7 @@ fn attr(p: &mut Parser, inner: bool) {
|
|||
attr.complete(p, ATTR);
|
||||
}
|
||||
|
||||
pub(super) fn meta(p: &mut Parser) {
|
||||
pub(super) fn meta(p: &mut Parser<'_>) {
|
||||
let meta = p.start();
|
||||
paths::use_path(p);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue