Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/handlers/expand_glob_import.rs')
-rw-r--r--crates/ide-assists/src/handlers/expand_glob_import.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/crates/ide-assists/src/handlers/expand_glob_import.rs b/crates/ide-assists/src/handlers/expand_glob_import.rs
index 0b95d6177f..307414c797 100644
--- a/crates/ide-assists/src/handlers/expand_glob_import.rs
+++ b/crates/ide-assists/src/handlers/expand_glob_import.rs
@@ -7,13 +7,14 @@ use ide_db::{
};
use stdx::never;
use syntax::{
- ast::{self, make, Use, UseTree, VisibilityKind},
- ted, AstNode, Direction, SyntaxNode, SyntaxToken, T,
+ AstNode, Direction, SyntaxNode, SyntaxToken, T,
+ ast::{self, Use, UseTree, VisibilityKind, make},
+ ted,
};
use crate::{
+ AssistId,
assist_context::{AssistContext, Assists},
- AssistId, AssistKind,
};
// Assist: expand_glob_import
@@ -61,7 +62,7 @@ pub(crate) fn expand_glob_import(acc: &mut Assists, ctx: &AssistContext<'_>) ->
let target = parent.either(|n| n.syntax().clone(), |n| n.syntax().clone());
acc.add(
- AssistId("expand_glob_import", AssistKind::RefactorRewrite),
+ AssistId::refactor_rewrite("expand_glob_import"),
"Expand glob import",
target.text_range(),
|builder| {
@@ -122,7 +123,7 @@ pub(crate) fn expand_glob_reexport(acc: &mut Assists, ctx: &AssistContext<'_>) -
let target = parent.either(|n| n.syntax().clone(), |n| n.syntax().clone());
acc.add(
- AssistId("expand_glob_reexport", AssistKind::RefactorRewrite),
+ AssistId::refactor_rewrite("expand_glob_reexport"),
"Expand glob reexport",
target.text_range(),
|builder| {