From afa482ef2499a2501ce64c437912d197f8ab9f13 Mon Sep 17 00:00:00 2001 From: Pietro Albini Date: Tue, 2 Apr 2024 00:26:10 +0200 Subject: [PATCH] store the span of the nested part of the use tree in the ast --- src/imports.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/imports.rs b/src/imports.rs index 09f6e752338..2da746295fc 100644 --- a/src/imports.rs +++ b/src/imports.rs @@ -458,7 +458,9 @@ fn from_ast( 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(