Simplify
This commit is contained in:
@@ -167,7 +167,7 @@ fn render_resolution_(
|
||||
hir::ScopeDef::ModuleDef(Function(func)) => {
|
||||
return render_fn(ctx, import_to_add, Some(local_name), *func);
|
||||
}
|
||||
hir::ScopeDef::ModuleDef(Variant(_)) if ctx.completion.is_pat_or_const.is_some() => {
|
||||
hir::ScopeDef::ModuleDef(Variant(_)) if ctx.completion.pattern_ctx.is_some() => {
|
||||
CompletionItemKind::SymbolKind(SymbolKind::Variant)
|
||||
}
|
||||
hir::ScopeDef::ModuleDef(Variant(var)) => {
|
||||
|
||||
Reference in New Issue
Block a user