aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-05-06 15:39:49 +0100
committerGitHub <[email protected]>2020-05-06 15:39:49 +0100
commit1252107a3c7964ac2e5e7726173b56bb4dfbe621 (patch)
tree5189803adf9b8d89cb4823362e568748de039396 /crates/ra_ide
parentefd8e34c396f1524623a495e47111f1047cf2879 (diff)
parent020ca6695f4d58f651984c4fbe2227d891896bb3 (diff)
Merge #4345
4345: Refactor assists a bit r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide')
-rw-r--r--crates/ra_ide/src/completion/completion_item.rs3
-rw-r--r--crates/ra_ide/src/lib.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_ide/src/completion/completion_item.rs b/crates/ra_ide/src/completion/completion_item.rs
index 383b23ac4..6021f7279 100644
--- a/crates/ra_ide/src/completion/completion_item.rs
+++ b/crates/ra_ide/src/completion/completion_item.rs
@@ -2,11 +2,12 @@
2 2
3use std::fmt; 3use std::fmt;
4 4
5use super::completion_config::SnippetCap;
6use hir::Documentation; 5use hir::Documentation;
7use ra_syntax::TextRange; 6use ra_syntax::TextRange;
8use ra_text_edit::TextEdit; 7use ra_text_edit::TextEdit;
9 8
9use crate::completion::completion_config::SnippetCap;
10
10/// `CompletionItem` describes a single completion variant in the editor pop-up. 11/// `CompletionItem` describes a single completion variant in the editor pop-up.
11/// It is basically a POD with various properties. To construct a 12/// It is basically a POD with various properties. To construct a
12/// `CompletionItem`, use `new` method and the `Builder` struct. 13/// `CompletionItem`, use `new` method and the `Builder` struct.
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs
index 614029de4..737f87109 100644
--- a/crates/ra_ide/src/lib.rs
+++ b/crates/ra_ide/src/lib.rs
@@ -478,7 +478,7 @@ impl Analysis {
478 id: assist.label.id, 478 id: assist.label.id,
479 label: assist.label.label, 479 label: assist.label.label,
480 group_label: assist.label.group.map(|it| it.0), 480 group_label: assist.label.group.map(|it| it.0),
481 source_change: assist.action, 481 source_change: assist.source_change,
482 }) 482 })
483 .collect() 483 .collect()
484 }) 484 })