mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Recategorize a few
This commit is contained in:
parent
5b9257561f
commit
1d58e16824
3 changed files with 3 additions and 3 deletions
|
@ -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| {
|
||||
|
|
|
@ -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| {
|
||||
|
|
|
@ -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);
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue