From dd2e8e86a9de610ca41846e0088e5e186eddf999 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Apr 2020 10:00:27 +0200 Subject: Fix add missing items assist order closes #3904 --- crates/ra_assists/src/lib.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ra_assists/src/lib.rs b/crates/ra_assists/src/lib.rs index c698d6e8c..5ba5254fd 100644 --- a/crates/ra_assists/src/lib.rs +++ b/crates/ra_assists/src/lib.rs @@ -132,13 +132,12 @@ mod handlers { pub(crate) fn all() -> &'static [AssistHandler] { &[ + // These are alphabetic for the foolish consistency add_custom_impl::add_custom_impl, add_derive::add_derive, add_explicit_type::add_explicit_type, add_function::add_function, add_impl::add_impl, - add_missing_impl_members::add_missing_default_members, - add_missing_impl_members::add_missing_impl_members, add_new::add_new, apply_demorgan::apply_demorgan, auto_import::auto_import, @@ -168,6 +167,9 @@ mod handlers { replace_unwrap_with_match::replace_unwrap_with_match, split_import::split_import, add_from_impl_for_enum::add_from_impl_for_enum, + // These are manually sorted for better priorities + add_missing_impl_members::add_missing_impl_members, + add_missing_impl_members::add_missing_default_members, ] } } -- cgit v1.2.3