aboutsummaryrefslogtreecommitdiff
path: root/crates/completion/src/completions
diff options
context:
space:
mode:
Diffstat (limited to 'crates/completion/src/completions')
-rw-r--r--crates/completion/src/completions/trait_impl.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/completion/src/completions/trait_impl.rs b/crates/completion/src/completions/trait_impl.rs
index 759253c53..43b3d939f 100644
--- a/crates/completion/src/completions/trait_impl.rs
+++ b/crates/completion/src/completions/trait_impl.rs
@@ -156,6 +156,7 @@ fn add_function_impl(
156 }; 156 };
157 let range = TextRange::new(fn_def_node.text_range().start(), ctx.source_range().end()); 157 let range = TextRange::new(fn_def_node.text_range().start(), ctx.source_range().end());
158 158
159 #[allow(deprecated)]
159 let function_decl = function_declaration(&func.source_old(ctx.db).value); 160 let function_decl = function_declaration(&func.source_old(ctx.db).value);
160 match ctx.config.snippet_cap { 161 match ctx.config.snippet_cap {
161 Some(cap) => { 162 Some(cap) => {
@@ -200,6 +201,7 @@ fn add_const_impl(
200 let const_name = const_.name(ctx.db).map(|n| n.to_string()); 201 let const_name = const_.name(ctx.db).map(|n| n.to_string());
201 202
202 if let Some(const_name) = const_name { 203 if let Some(const_name) = const_name {
204 #[allow(deprecated)]
203 let snippet = make_const_compl_syntax(&const_.source_old(ctx.db).value); 205 let snippet = make_const_compl_syntax(&const_.source_old(ctx.db).value);
204 206
205 let range = TextRange::new(const_def_node.text_range().start(), ctx.source_range().end()); 207 let range = TextRange::new(const_def_node.text_range().start(), ctx.source_range().end());