aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_assists/src/lib.rs')
-rw-r--r--crates/ra_assists/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_assists/src/lib.rs b/crates/ra_assists/src/lib.rs
index c5df86600..6156f4e2c 100644
--- a/crates/ra_assists/src/lib.rs
+++ b/crates/ra_assists/src/lib.rs
@@ -32,16 +32,16 @@ pub struct AssistId(pub &'static str);
32 32
33#[derive(Debug, Clone)] 33#[derive(Debug, Clone)]
34pub struct AssistLabel { 34pub struct AssistLabel {
35 pub id: AssistId,
35 /// Short description of the assist, as shown in the UI. 36 /// Short description of the assist, as shown in the UI.
36 pub label: String, 37 pub label: String,
37 pub id: AssistId,
38} 38}
39 39
40#[derive(Clone, Debug)] 40#[derive(Clone, Debug)]
41pub struct GroupLabel(pub String); 41pub struct GroupLabel(pub String);
42 42
43impl AssistLabel { 43impl AssistLabel {
44 pub(crate) fn new(label: String, id: AssistId) -> AssistLabel { 44 pub(crate) fn new(id: AssistId, label: String) -> AssistLabel {
45 // FIXME: make fields private, so that this invariant can't be broken 45 // FIXME: make fields private, so that this invariant can't be broken
46 assert!(label.starts_with(|c: char| c.is_uppercase())); 46 assert!(label.starts_with(|c: char| c.is_uppercase()));
47 AssistLabel { label, id } 47 AssistLabel { label, id }