aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/assists/src/lib.rs')
-rw-r--r--crates/assists/src/lib.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/assists/src/lib.rs b/crates/assists/src/lib.rs
index b804e495d..e8d81b33d 100644
--- a/crates/assists/src/lib.rs
+++ b/crates/assists/src/lib.rs
@@ -120,13 +120,11 @@ mod handlers {
120 120
121 pub(crate) type Handler = fn(&mut Assists, &AssistContext) -> Option<()>; 121 pub(crate) type Handler = fn(&mut Assists, &AssistContext) -> Option<()>;
122 122
123 mod add_custom_impl;
124 mod add_explicit_type; 123 mod add_explicit_type;
125 mod add_missing_impl_members; 124 mod add_missing_impl_members;
126 mod add_turbo_fish; 125 mod add_turbo_fish;
127 mod apply_demorgan; 126 mod apply_demorgan;
128 mod auto_import; 127 mod auto_import;
129 mod change_return_type_to_result;
130 mod change_visibility; 128 mod change_visibility;
131 mod convert_integer_literal; 129 mod convert_integer_literal;
132 mod early_return; 130 mod early_return;
@@ -143,6 +141,7 @@ mod handlers {
143 mod generate_function; 141 mod generate_function;
144 mod generate_impl; 142 mod generate_impl;
145 mod generate_new; 143 mod generate_new;
144 mod infer_function_return_type;
146 mod inline_local_variable; 145 mod inline_local_variable;
147 mod introduce_named_lifetime; 146 mod introduce_named_lifetime;
148 mod invert_if; 147 mod invert_if;
@@ -156,6 +155,7 @@ mod handlers {
156 mod remove_mut; 155 mod remove_mut;
157 mod remove_unused_param; 156 mod remove_unused_param;
158 mod reorder_fields; 157 mod reorder_fields;
158 mod replace_derive_with_manual_impl;
159 mod replace_if_let_with_match; 159 mod replace_if_let_with_match;
160 mod replace_impl_trait_with_generic; 160 mod replace_impl_trait_with_generic;
161 mod replace_let_with_if_let; 161 mod replace_let_with_if_let;
@@ -164,16 +164,15 @@ mod handlers {
164 mod replace_unwrap_with_match; 164 mod replace_unwrap_with_match;
165 mod split_import; 165 mod split_import;
166 mod unwrap_block; 166 mod unwrap_block;
167 mod wrap_return_type_in_result;
167 168
168 pub(crate) fn all() -> &'static [Handler] { 169 pub(crate) fn all() -> &'static [Handler] {
169 &[ 170 &[
170 // These are alphabetic for the foolish consistency 171 // These are alphabetic for the foolish consistency
171 add_custom_impl::add_custom_impl,
172 add_explicit_type::add_explicit_type, 172 add_explicit_type::add_explicit_type,
173 add_turbo_fish::add_turbo_fish, 173 add_turbo_fish::add_turbo_fish,
174 apply_demorgan::apply_demorgan, 174 apply_demorgan::apply_demorgan,
175 auto_import::auto_import, 175 auto_import::auto_import,
176 change_return_type_to_result::change_return_type_to_result,
177 change_visibility::change_visibility, 176 change_visibility::change_visibility,
178 convert_integer_literal::convert_integer_literal, 177 convert_integer_literal::convert_integer_literal,
179 early_return::convert_to_guarded_return, 178 early_return::convert_to_guarded_return,
@@ -190,6 +189,7 @@ mod handlers {
190 generate_function::generate_function, 189 generate_function::generate_function,
191 generate_impl::generate_impl, 190 generate_impl::generate_impl,
192 generate_new::generate_new, 191 generate_new::generate_new,
192 infer_function_return_type::infer_function_return_type,
193 inline_local_variable::inline_local_variable, 193 inline_local_variable::inline_local_variable,
194 introduce_named_lifetime::introduce_named_lifetime, 194 introduce_named_lifetime::introduce_named_lifetime,
195 invert_if::invert_if, 195 invert_if::invert_if,
@@ -206,6 +206,7 @@ mod handlers {
206 remove_mut::remove_mut, 206 remove_mut::remove_mut,
207 remove_unused_param::remove_unused_param, 207 remove_unused_param::remove_unused_param,
208 reorder_fields::reorder_fields, 208 reorder_fields::reorder_fields,
209 replace_derive_with_manual_impl::replace_derive_with_manual_impl,
209 replace_if_let_with_match::replace_if_let_with_match, 210 replace_if_let_with_match::replace_if_let_with_match,
210 replace_impl_trait_with_generic::replace_impl_trait_with_generic, 211 replace_impl_trait_with_generic::replace_impl_trait_with_generic,
211 replace_let_with_if_let::replace_let_with_if_let, 212 replace_let_with_if_let::replace_let_with_if_let,
@@ -213,6 +214,7 @@ mod handlers {
213 replace_unwrap_with_match::replace_unwrap_with_match, 214 replace_unwrap_with_match::replace_unwrap_with_match,
214 split_import::split_import, 215 split_import::split_import,
215 unwrap_block::unwrap_block, 216 unwrap_block::unwrap_block,
217 wrap_return_type_in_result::wrap_return_type_in_result,
216 // These are manually sorted for better priorities 218 // These are manually sorted for better priorities
217 add_missing_impl_members::add_missing_impl_members, 219 add_missing_impl_members::add_missing_impl_members,
218 add_missing_impl_members::add_missing_default_members, 220 add_missing_impl_members::add_missing_default_members,