diff --git a/crates/ra_assists/src/handlers/expand_glob_import.rs b/crates/ra_assists/src/handlers/expand_glob_import.rs index 590239304e..ae9e861812 100644 --- a/crates/ra_assists/src/handlers/expand_glob_import.rs +++ b/crates/ra_assists/src/handlers/expand_glob_import.rs @@ -164,7 +164,7 @@ fn replace_ast( ast::UseTreeList(use_tree_list) => { builder.replace_ast(use_tree_list, new_use_tree_list); }, - ast::UseItem(use_item) => { + ast::Use(use_item) => { builder.replace_ast(use_item, ast::make::use_item(make_use_tree(path, new_use_tree_list))); }, _ => {},