Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/function.rs')
-rw-r--r--crates/ide-completion/src/render/function.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-completion/src/render/function.rs b/crates/ide-completion/src/render/function.rs
index d8183660e8..6430b1e46a 100644
--- a/crates/ide-completion/src/render/function.rs
+++ b/crates/ide-completion/src/render/function.rs
@@ -197,10 +197,10 @@ fn should_add_parens(ctx: &CompletionContext) -> bool {
}
match ctx.path_context {
- Some(PathCompletionCtx { kind: Some(PathKind::Expr), has_call_parens: true, .. }) => {
+ Some(PathCompletionCtx { kind: PathKind::Expr, has_call_parens: true, .. }) => {
return false
}
- Some(PathCompletionCtx { kind: Some(PathKind::Use | PathKind::Type), .. }) => {
+ Some(PathCompletionCtx { kind: PathKind::Use | PathKind::Type, .. }) => {
cov_mark::hit!(no_parens_in_use_item);
return false;
}