mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: completion PathKind is not optional
This commit is contained in:
parent
dd3f5e0993
commit
57a9915c1f
12 changed files with 40 additions and 33 deletions
|
@ -15,9 +15,9 @@ pub(crate) fn complete_expr_path(acc: &mut Completions, ctx: &CompletionContext)
|
|||
}
|
||||
|
||||
let (&is_absolute_path, qualifier) = match &ctx.path_context {
|
||||
Some(PathCompletionCtx {
|
||||
kind: Some(PathKind::Expr), is_absolute_path, qualifier, ..
|
||||
}) => (is_absolute_path, qualifier),
|
||||
Some(PathCompletionCtx { kind: PathKind::Expr, is_absolute_path, qualifier, .. }) => {
|
||||
(is_absolute_path, qualifier)
|
||||
}
|
||||
_ => return,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue