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 af88b3437..17e9312db 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 ignore_test;
146 mod infer_function_return_type; 145 mod infer_function_return_type;
147 mod inline_local_variable; 146 mod inline_local_variable;
148 mod introduce_named_lifetime; 147 mod introduce_named_lifetime;
@@ -157,6 +156,7 @@ mod handlers {
157 mod remove_mut; 156 mod remove_mut;
158 mod remove_unused_param; 157 mod remove_unused_param;
159 mod reorder_fields; 158 mod reorder_fields;
159 mod replace_derive_with_manual_impl;
160 mod replace_if_let_with_match; 160 mod replace_if_let_with_match;
161 mod replace_impl_trait_with_generic; 161 mod replace_impl_trait_with_generic;
162 mod replace_let_with_if_let; 162 mod replace_let_with_if_let;
@@ -165,16 +165,15 @@ mod handlers {
165 mod replace_unwrap_with_match; 165 mod replace_unwrap_with_match;
166 mod split_import; 166 mod split_import;
167 mod unwrap_block; 167 mod unwrap_block;
168 mod wrap_return_type_in_result;
168 169
169 pub(crate) fn all() -> &'static [Handler] { 170 pub(crate) fn all() -> &'static [Handler] {
170 &[ 171 &[
171 // These are alphabetic for the foolish consistency 172 // These are alphabetic for the foolish consistency
172 add_custom_impl::add_custom_impl,
173 add_explicit_type::add_explicit_type, 173 add_explicit_type::add_explicit_type,
174 add_turbo_fish::add_turbo_fish, 174 add_turbo_fish::add_turbo_fish,
175 apply_demorgan::apply_demorgan, 175 apply_demorgan::apply_demorgan,
176 auto_import::auto_import, 176 auto_import::auto_import,
177 change_return_type_to_result::change_return_type_to_result,
178 change_visibility::change_visibility, 177 change_visibility::change_visibility,
179 convert_integer_literal::convert_integer_literal, 178 convert_integer_literal::convert_integer_literal,
180 early_return::convert_to_guarded_return, 179 early_return::convert_to_guarded_return,
@@ -191,6 +190,7 @@ mod handlers {
191 generate_function::generate_function, 190 generate_function::generate_function,
192 generate_impl::generate_impl, 191 generate_impl::generate_impl,
193 generate_new::generate_new, 192 generate_new::generate_new,
193 ignore_test::ignore_test,
194 infer_function_return_type::infer_function_return_type, 194 infer_function_return_type::infer_function_return_type,
195 inline_local_variable::inline_local_variable, 195 inline_local_variable::inline_local_variable,
196 introduce_named_lifetime::introduce_named_lifetime, 196 introduce_named_lifetime::introduce_named_lifetime,
@@ -208,6 +208,7 @@ mod handlers {
208 remove_mut::remove_mut, 208 remove_mut::remove_mut,
209 remove_unused_param::remove_unused_param, 209 remove_unused_param::remove_unused_param,
210 reorder_fields::reorder_fields, 210 reorder_fields::reorder_fields,
211 replace_derive_with_manual_impl::replace_derive_with_manual_impl,
211 replace_if_let_with_match::replace_if_let_with_match, 212 replace_if_let_with_match::replace_if_let_with_match,
212 replace_impl_trait_with_generic::replace_impl_trait_with_generic, 213 replace_impl_trait_with_generic::replace_impl_trait_with_generic,
213 replace_let_with_if_let::replace_let_with_if_let, 214 replace_let_with_if_let::replace_let_with_if_let,
@@ -215,6 +216,7 @@ mod handlers {
215 replace_unwrap_with_match::replace_unwrap_with_match, 216 replace_unwrap_with_match::replace_unwrap_with_match,
216 split_import::split_import, 217 split_import::split_import,
217 unwrap_block::unwrap_block, 218 unwrap_block::unwrap_block,
219 wrap_return_type_in_result::wrap_return_type_in_result,
218 // These are manually sorted for better priorities 220 // These are manually sorted for better priorities
219 add_missing_impl_members::add_missing_impl_members, 221 add_missing_impl_members::add_missing_impl_members,
220 add_missing_impl_members::add_missing_default_members, 222 add_missing_impl_members::add_missing_default_members,