Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/destructure_tuple_binding.rs')
-rw-r--r--crates/ide-assists/src/handlers/destructure_tuple_binding.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide-assists/src/handlers/destructure_tuple_binding.rs b/crates/ide-assists/src/handlers/destructure_tuple_binding.rs
index 39142d6062..adf0f0997b 100644
--- a/crates/ide-assists/src/handlers/destructure_tuple_binding.rs
+++ b/crates/ide-assists/src/handlers/destructure_tuple_binding.rs
@@ -1,5 +1,5 @@
use ide_db::{
- assists::{AssistId, AssistKind},
+ assists::AssistId,
defs::Definition,
search::{FileReference, SearchScope},
syntax_helpers::suggest_name,
@@ -7,7 +7,7 @@ use ide_db::{
};
use itertools::Itertools;
use syntax::{
- ast::{self, make, AstNode, FieldExpr, HasName, IdentPat},
+ ast::{self, AstNode, FieldExpr, HasName, IdentPat, make},
ted,
};
@@ -65,7 +65,7 @@ pub(crate) fn destructure_tuple_binding_impl(
if with_sub_pattern {
acc.add(
- AssistId("destructure_tuple_binding_in_sub_pattern", AssistKind::RefactorRewrite),
+ AssistId::refactor_rewrite("destructure_tuple_binding_in_sub_pattern"),
"Destructure tuple in sub-pattern",
data.ident_pat.syntax().text_range(),
|edit| destructure_tuple_edit_impl(ctx, edit, &data, true),
@@ -73,7 +73,7 @@ pub(crate) fn destructure_tuple_binding_impl(
}
acc.add(
- AssistId("destructure_tuple_binding", AssistKind::RefactorRewrite),
+ AssistId::refactor_rewrite("destructure_tuple_binding"),
if with_sub_pattern { "Destructure tuple in place" } else { "Destructure tuple" },
data.ident_pat.syntax().text_range(),
|edit| destructure_tuple_edit_impl(ctx, edit, &data, false),