diff --git a/crates/ra_assists/src/assists/auto_import.rs b/crates/ra_assists/src/assists/auto_import.rs index e908ab1fc0..2068256b08 100644 --- a/crates/ra_assists/src/assists/auto_import.rs +++ b/crates/ra_assists/src/assists/auto_import.rs @@ -63,16 +63,12 @@ pub(crate) fn auto_import( return None; } - ctx.add_assist_group( - AssistId("auto_import"), - format!("Import {}", path_to_import_syntax), - || { - proposed_imports - .into_iter() - .map(|import| import_to_action(import, &position, &path_to_import_syntax)) - .collect() - }, - ) + ctx.add_assist_group(AssistId("auto_import"), format!("Import {}", name_to_import), || { + proposed_imports + .into_iter() + .map(|import| import_to_action(import, &position, &path_to_import_syntax)) + .collect() + }) } fn import_to_action(import: ModPath, position: &SyntaxNode, anchor: &SyntaxNode) -> ActionBuilder {