internal: completion PathKind is not optional
This commit is contained in:
@@ -273,7 +273,7 @@ fn render_resolution_simple_(
|
||||
// Add `<>` for generic types
|
||||
let type_path_no_ty_args = matches!(
|
||||
ctx.completion.path_context,
|
||||
Some(PathCompletionCtx { kind: Some(PathKind::Type), has_type_args: false, .. })
|
||||
Some(PathCompletionCtx { kind: PathKind::Type, has_type_args: false, .. })
|
||||
) && ctx.completion.config.add_call_parenthesis;
|
||||
if type_path_no_ty_args {
|
||||
if let Some(cap) = ctx.snippet_cap() {
|
||||
|
||||
Reference in New Issue
Block a user