Reformat code
This commit is contained in:
parent
1bfd903af0
commit
84c59a1f9f
@ -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…
x
Reference in New Issue
Block a user