From 99c4a41cd1a9f9ef0ee4f067f0069a23123b949a Mon Sep 17 00:00:00 2001 From: yonip23 Date: Thu, 11 Mar 2021 17:46:41 +0200 Subject: use references in CompletionItem's builder --- crates/ide_completion/src/completions/postfix.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ide_completion/src/completions/postfix.rs') diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide_completion/src/completions/postfix.rs index d45ad7944..8551e0168 100644 --- a/crates/ide_completion/src/completions/postfix.rs +++ b/crates/ide_completion/src/completions/postfix.rs @@ -301,6 +301,7 @@ fn postfix_snippet( .detail(detail) .kind(CompletionItemKind::Snippet) .snippet_edit(cap, edit) + .clone() } #[cfg(test)] -- cgit v1.2.3