mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Simplify
This commit is contained in:
parent
d7374ab882
commit
2e733b1a3e
5 changed files with 70 additions and 58 deletions
|
@ -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)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue