mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
format
This commit is contained in:
parent
e1fe930845
commit
3de6b4839f
2 changed files with 2 additions and 6 deletions
|
@ -226,9 +226,7 @@ fn find_imported_defs(ctx: &AssistContext, star: SyntaxToken) -> Option<Vec<Defi
|
||||||
.flat_map(|n| n.descendants().filter_map(ast::NameRef::cast))
|
.flat_map(|n| n.descendants().filter_map(ast::NameRef::cast))
|
||||||
.filter_map(|r| match NameRefClass::classify(&ctx.sema, &r)? {
|
.filter_map(|r| match NameRefClass::classify(&ctx.sema, &r)? {
|
||||||
NameRefClass::Definition(
|
NameRefClass::Definition(
|
||||||
def
|
def @ (Definition::Macro(_)
|
||||||
@
|
|
||||||
(Definition::Macro(_)
|
|
||||||
| Definition::Module(_)
|
| Definition::Module(_)
|
||||||
| Definition::Function(_)
|
| Definition::Function(_)
|
||||||
| Definition::Adt(_)
|
| Definition::Adt(_)
|
||||||
|
|
|
@ -171,9 +171,7 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
hir::PathResolution::Def(
|
hir::PathResolution::Def(
|
||||||
def
|
def @ (hir::ModuleDef::Adt(_)
|
||||||
@
|
|
||||||
(hir::ModuleDef::Adt(_)
|
|
||||||
| hir::ModuleDef::TypeAlias(_)
|
| hir::ModuleDef::TypeAlias(_)
|
||||||
| hir::ModuleDef::BuiltinType(_)),
|
| hir::ModuleDef::BuiltinType(_)),
|
||||||
) => {
|
) => {
|
||||||
|
|
Loading…
Reference in a new issue