From 1d58e168246e1ca64f3ce3936e90077922b82d05 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Thu, 2 Jul 2020 17:14:15 -0400 Subject: Recategorize a few --- crates/ra_assists/src/handlers/fill_match_arms.rs | 2 +- crates/ra_assists/src/handlers/move_guard.rs | 2 +- crates/ra_assists/src/handlers/split_import.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'crates') diff --git a/crates/ra_assists/src/handlers/fill_match_arms.rs b/crates/ra_assists/src/handlers/fill_match_arms.rs index 96610dbf5..c779e749b 100644 --- a/crates/ra_assists/src/handlers/fill_match_arms.rs +++ b/crates/ra_assists/src/handlers/fill_match_arms.rs @@ -105,7 +105,7 @@ pub(crate) fn fill_match_arms(acc: &mut Assists, ctx: &AssistContext) -> Option< let target = match_expr.syntax().text_range(); acc.add( AssistId("fill_match_arms"), - AssistKind::RefactorRewrite, + AssistKind::QuickFix, "Fill match arms", target, |builder| { diff --git a/crates/ra_assists/src/handlers/move_guard.rs b/crates/ra_assists/src/handlers/move_guard.rs index 7f3aaf4f7..77c1b66be 100644 --- a/crates/ra_assists/src/handlers/move_guard.rs +++ b/crates/ra_assists/src/handlers/move_guard.rs @@ -42,7 +42,7 @@ pub(crate) fn move_guard_to_arm_body(acc: &mut Assists, ctx: &AssistContext) -> let target = guard.syntax().text_range(); acc.add( AssistId("move_guard_to_arm_body"), - AssistKind::RefactorExtract, + AssistKind::RefactorRewrite, "Move guard to arm body", target, |edit| { diff --git a/crates/ra_assists/src/handlers/split_import.rs b/crates/ra_assists/src/handlers/split_import.rs index c0cf8d923..a27b6230a 100644 --- a/crates/ra_assists/src/handlers/split_import.rs +++ b/crates/ra_assists/src/handlers/split_import.rs @@ -28,7 +28,7 @@ pub(crate) fn split_import(acc: &mut Assists, ctx: &AssistContext) -> Option<()> } let target = colon_colon.text_range(); - acc.add(AssistId("split_import"), AssistKind::RefactorExtract, "Split import", target, |edit| { + acc.add(AssistId("split_import"), AssistKind::RefactorRewrite, "Split import", target, |edit| { edit.replace_ast(use_tree, new_tree); }) } -- cgit v1.2.3