diff options
author | kjeremy <[email protected]> | 2020-07-02 22:14:15 +0100 |
---|---|---|
committer | kjeremy <[email protected]> | 2020-07-02 22:14:15 +0100 |
commit | 1d58e168246e1ca64f3ce3936e90077922b82d05 (patch) | |
tree | 5dd5a765e233b8b00120e5941c04ad30ac588289 /crates/ra_assists | |
parent | 5b9257561ff3bdf23ebcf3369f84283fb6c589a9 (diff) |
Recategorize a few
Diffstat (limited to 'crates/ra_assists')
-rw-r--r-- | crates/ra_assists/src/handlers/fill_match_arms.rs | 2 | ||||
-rw-r--r-- | crates/ra_assists/src/handlers/move_guard.rs | 2 | ||||
-rw-r--r-- | crates/ra_assists/src/handlers/split_import.rs | 2 |
3 files changed, 3 insertions, 3 deletions
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< | |||
105 | let target = match_expr.syntax().text_range(); | 105 | let target = match_expr.syntax().text_range(); |
106 | acc.add( | 106 | acc.add( |
107 | AssistId("fill_match_arms"), | 107 | AssistId("fill_match_arms"), |
108 | AssistKind::RefactorRewrite, | 108 | AssistKind::QuickFix, |
109 | "Fill match arms", | 109 | "Fill match arms", |
110 | target, | 110 | target, |
111 | |builder| { | 111 | |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) -> | |||
42 | let target = guard.syntax().text_range(); | 42 | let target = guard.syntax().text_range(); |
43 | acc.add( | 43 | acc.add( |
44 | AssistId("move_guard_to_arm_body"), | 44 | AssistId("move_guard_to_arm_body"), |
45 | AssistKind::RefactorExtract, | 45 | AssistKind::RefactorRewrite, |
46 | "Move guard to arm body", | 46 | "Move guard to arm body", |
47 | target, | 47 | target, |
48 | |edit| { | 48 | |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<()> | |||
28 | } | 28 | } |
29 | 29 | ||
30 | let target = colon_colon.text_range(); | 30 | let target = colon_colon.text_range(); |
31 | acc.add(AssistId("split_import"), AssistKind::RefactorExtract, "Split import", target, |edit| { | 31 | acc.add(AssistId("split_import"), AssistKind::RefactorRewrite, "Split import", target, |edit| { |
32 | edit.replace_ast(use_tree, new_tree); | 32 | edit.replace_ast(use_tree, new_tree); |
33 | }) | 33 | }) |
34 | } | 34 | } |