mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 08:57:34 +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))
|
||||
.filter_map(|r| match NameRefClass::classify(&ctx.sema, &r)? {
|
||||
NameRefClass::Definition(
|
||||
def
|
||||
@
|
||||
(Definition::Macro(_)
|
||||
def @ (Definition::Macro(_)
|
||||
| Definition::Module(_)
|
||||
| Definition::Function(_)
|
||||
| Definition::Adt(_)
|
||||
|
|
|
@ -171,9 +171,7 @@ pub(crate) fn complete_qualified_path(acc: &mut Completions, ctx: &CompletionCon
|
|||
}
|
||||
}
|
||||
hir::PathResolution::Def(
|
||||
def
|
||||
@
|
||||
(hir::ModuleDef::Adt(_)
|
||||
def @ (hir::ModuleDef::Adt(_)
|
||||
| hir::ModuleDef::TypeAlias(_)
|
||||
| hir::ModuleDef::BuiltinType(_)),
|
||||
) => {
|
||||
|
|
Loading…
Reference in a new issue