diff options
author | Kevin DeLorey <[email protected]> | 2020-01-29 02:30:53 +0000 |
---|---|---|
committer | Kevin DeLorey <[email protected]> | 2020-01-29 02:33:12 +0000 |
commit | 698ff91c1309b189ca0f08e3d62d219305ae5f46 (patch) | |
tree | 52839b309aab60cd528c08c97a5a303a2a969cee /crates/ra_ide/src/completion/presentation.rs | |
parent | bc1fc6239d67708112f4f3997b104934dd11b7fd (diff) |
Already implemented fn will no longer be suggested for trait implementations.
Diffstat (limited to 'crates/ra_ide/src/completion/presentation.rs')
-rw-r--r-- | crates/ra_ide/src/completion/presentation.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index d0a43261f..0689013ba 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs | |||
@@ -129,7 +129,7 @@ impl Completions { | |||
129 | self.add_function_with_name(ctx, None, func) | 129 | self.add_function_with_name(ctx, None, func) |
130 | } | 130 | } |
131 | 131 | ||
132 | pub(crate) fn add_function_impl(&mut self, ctx: &CompletionContext, func: hir::Function) { | 132 | pub(crate) fn add_function_impl(&mut self, ctx: &CompletionContext, func: &hir::Function) { |
133 | use crate::display::FunctionSignature; | 133 | use crate::display::FunctionSignature; |
134 | 134 | ||
135 | let display = FunctionSignature::from_hir(ctx.db, func.clone()); | 135 | let display = FunctionSignature::from_hir(ctx.db, func.clone()); |
@@ -150,7 +150,7 @@ impl Completions { | |||
150 | 150 | ||
151 | let snippet = { | 151 | let snippet = { |
152 | let mut s = format!("{}", display); | 152 | let mut s = format!("{}", display); |
153 | s.push_str(" { $0 }"); | 153 | s.push_str(" { $0}"); |
154 | s | 154 | s |
155 | }; | 155 | }; |
156 | 156 | ||