diff options
Diffstat (limited to 'crates/ra_assists/src/lib.rs')
-rw-r--r-- | crates/ra_assists/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_assists/src/lib.rs b/crates/ra_assists/src/lib.rs index a0e7fe17e..d7998b0d1 100644 --- a/crates/ra_assists/src/lib.rs +++ b/crates/ra_assists/src/lib.rs | |||
@@ -38,7 +38,7 @@ pub struct GroupLabel(pub String); | |||
38 | impl AssistLabel { | 38 | impl AssistLabel { |
39 | pub(crate) fn new(label: String, id: AssistId) -> AssistLabel { | 39 | pub(crate) fn new(label: String, id: AssistId) -> AssistLabel { |
40 | // FIXME: make fields private, so that this invariant can't be broken | 40 | // FIXME: make fields private, so that this invariant can't be broken |
41 | assert!(label.chars().next().unwrap().is_uppercase()); | 41 | assert!(label.starts_with(|c: char| c.is_uppercase())); |
42 | AssistLabel { label, id } | 42 | AssistLabel { label, id } |
43 | } | 43 | } |
44 | } | 44 | } |
@@ -108,6 +108,7 @@ mod handlers { | |||
108 | mod introduce_variable; | 108 | mod introduce_variable; |
109 | mod inline_local_variable; | 109 | mod inline_local_variable; |
110 | mod raw_string; | 110 | mod raw_string; |
111 | mod remove_mut; | ||
111 | mod replace_if_let_with_match; | 112 | mod replace_if_let_with_match; |
112 | mod split_import; | 113 | mod split_import; |
113 | mod remove_dbg; | 114 | mod remove_dbg; |
@@ -147,6 +148,7 @@ mod handlers { | |||
147 | raw_string::make_raw_string, | 148 | raw_string::make_raw_string, |
148 | raw_string::make_usual_string, | 149 | raw_string::make_usual_string, |
149 | raw_string::remove_hash, | 150 | raw_string::remove_hash, |
151 | remove_mut::remove_mut, | ||
150 | early_return::convert_to_guarded_return, | 152 | early_return::convert_to_guarded_return, |
151 | auto_import::auto_import, | 153 | auto_import::auto_import, |
152 | ] | 154 | ] |