mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
reformat the world
This commit is contained in:
parent
5cb1d41a30
commit
12e3b4c70b
129 changed files with 727 additions and 2509 deletions
|
@ -52,10 +52,7 @@ fn parse_subtree(tt: &tt::Subtree) -> Option<crate::Subtree> {
|
|||
};
|
||||
token_trees.push(child);
|
||||
}
|
||||
Some(crate::Subtree {
|
||||
token_trees,
|
||||
delimiter: tt.delimiter,
|
||||
})
|
||||
Some(crate::Subtree { token_trees, delimiter: tt.delimiter })
|
||||
}
|
||||
|
||||
fn parse_var(p: &mut TtCursor) -> Option<crate::Var> {
|
||||
|
@ -92,9 +89,5 @@ fn parse_repeat(p: &mut TtCursor) -> Option<crate::Repeat> {
|
|||
_ => return None,
|
||||
};
|
||||
p.bump();
|
||||
Some(crate::Repeat {
|
||||
subtree,
|
||||
kind,
|
||||
separator,
|
||||
})
|
||||
Some(crate::Repeat { subtree, kind, separator })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue