]> git.lizzy.rs Git - rust.git/commitdiff
Better ordering of assists
authorAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 26 Oct 2020 20:59:28 +0000 (21:59 +0100)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Mon, 26 Oct 2020 20:59:28 +0000 (21:59 +0100)
crates/assists/src/lib.rs

index 70a651e10f62754e862e5430082f7cbf1774cd26..b804e495d06e2e34e126e209c3dcd1909b6909ce 100644 (file)
@@ -200,7 +200,6 @@ pub(crate) fn all() -> &'static [Handler] {
             move_guard::move_guard_to_arm_body,
             qualify_path::qualify_path,
             raw_string::add_hash,
-            raw_string::make_raw_string,
             raw_string::make_usual_string,
             raw_string::remove_hash,
             remove_dbg::remove_dbg,
@@ -211,13 +210,15 @@ pub(crate) fn all() -> &'static [Handler] {
             replace_impl_trait_with_generic::replace_impl_trait_with_generic,
             replace_let_with_if_let::replace_let_with_if_let,
             replace_qualified_name_with_use::replace_qualified_name_with_use,
-            replace_string_with_char::replace_string_with_char,
             replace_unwrap_with_match::replace_unwrap_with_match,
             split_import::split_import,
             unwrap_block::unwrap_block,
             // These are manually sorted for better priorities
             add_missing_impl_members::add_missing_impl_members,
             add_missing_impl_members::add_missing_default_members,
+            //
+            replace_string_with_char::replace_string_with_char,
+            raw_string::make_raw_string,
             // Are you sure you want to add new assist here, and not to the
             // sorted list above?
         ]