Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/literal.rs')
-rw-r--r--crates/ide-completion/src/render/literal.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/crates/ide-completion/src/render/literal.rs b/crates/ide-completion/src/render/literal.rs
index 1e03d066d1..042c974257 100644
--- a/crates/ide-completion/src/render/literal.rs
+++ b/crates/ide-completion/src/render/literal.rs
@@ -55,15 +55,14 @@ fn render(
let mut kind = thing.kind(db);
let should_add_parens = match &completion.ident_ctx {
IdentContext::NameRef(NameRefContext {
- kind: Some(NameRefKind::Path(PathCompletionCtx { has_call_parens: true, .. })),
+ kind: NameRefKind::Path(PathCompletionCtx { has_call_parens: true, .. }),
..
}) => false,
IdentContext::NameRef(NameRefContext {
kind:
- Some(NameRefKind::Path(PathCompletionCtx {
- kind: PathKind::Use | PathKind::Type { .. },
- ..
- })),
+ NameRefKind::Path(PathCompletionCtx {
+ kind: PathKind::Use | PathKind::Type { .. }, ..
+ }),
..
}) => false,
_ => true,