Skip to content

Commit

Permalink
store the span of the nested part of the use tree in the ast
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini committed Apr 14, 2024
1 parent 7af33b3 commit afa482e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,9 @@ impl UseTree {
version,
});
}
UseTreeKind::Nested(ref list) => {
UseTreeKind::Nested {
items: ref list, ..
} => {
// Extract comments between nested use items.
// This needs to be done before sorting use items.
let items = itemize_list(
Expand Down

0 comments on commit afa482e

Please sign in to comment.