mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Run cargo fmt
This commit is contained in:
parent
8318035726
commit
7e285e1ef5
35 changed files with 190 additions and 45 deletions
|
@ -27,7 +27,10 @@ pub(super) fn expr_path(p: &mut Parser<'_>) {
|
|||
path(p, Mode::Expr);
|
||||
}
|
||||
|
||||
pub(crate) fn type_path_for_qualifier(p: &mut Parser<'_>, qual: CompletedMarker) -> CompletedMarker {
|
||||
pub(crate) fn type_path_for_qualifier(
|
||||
p: &mut Parser<'_>,
|
||||
qual: CompletedMarker,
|
||||
) -> CompletedMarker {
|
||||
path_for_qualifier(p, Mode::Type, qual)
|
||||
}
|
||||
|
||||
|
@ -45,7 +48,11 @@ fn path(p: &mut Parser<'_>, mode: Mode) {
|
|||
path_for_qualifier(p, mode, qual);
|
||||
}
|
||||
|
||||
fn path_for_qualifier(p: &mut Parser<'_>, mode: Mode, mut qual: CompletedMarker) -> CompletedMarker {
|
||||
fn path_for_qualifier(
|
||||
p: &mut Parser<'_>,
|
||||
mode: Mode,
|
||||
mut qual: CompletedMarker,
|
||||
) -> CompletedMarker {
|
||||
loop {
|
||||
let use_tree = matches!(p.nth(2), T![*] | T!['{']);
|
||||
if p.at(T![::]) && !use_tree {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue