mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Change terminology, do not name use items and use trees as imports
This commit is contained in:
parent
12cb6e7327
commit
f86f6a89eb
7 changed files with 37 additions and 39 deletions
|
@ -198,8 +198,8 @@ impl Printer<'_> {
|
|||
self.print_attrs_of(item);
|
||||
|
||||
match item {
|
||||
ModItem::Import(it) => {
|
||||
let Import { visibility, use_tree, ast_id: _ } = &self.tree[it];
|
||||
ModItem::Use(it) => {
|
||||
let Use { visibility, use_tree, ast_id: _ } = &self.tree[it];
|
||||
self.print_visibility(*visibility);
|
||||
w!(self, "use ");
|
||||
self.print_use_tree(use_tree);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue