Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-completion/src/render/macro_.rs')
-rw-r--r--crates/ide-completion/src/render/macro_.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide-completion/src/render/macro_.rs b/crates/ide-completion/src/render/macro_.rs
index 5c862f013a..de527860d8 100644
--- a/crates/ide-completion/src/render/macro_.rs
+++ b/crates/ide-completion/src/render/macro_.rs
@@ -34,8 +34,8 @@ fn render(
let (bra, ket) = if is_fn_like { guess_macro_braces(&name, docs_str) } else { ("", "") };
let needs_bang = match completion.path_context() {
- Some(&PathCompletionCtx { kind, has_macro_bang, .. }) => {
- is_fn_like && kind != PathKind::Use && !has_macro_bang
+ Some(PathCompletionCtx { kind, has_macro_bang, .. }) => {
+ is_fn_like && *kind != PathKind::Use && !has_macro_bang
}
_ => is_fn_like,
};