summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/src/imports.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/src/imports.rs')
-rw-r--r--src/tools/rustfmt/src/imports.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/rustfmt/src/imports.rs b/src/tools/rustfmt/src/imports.rs
index b6530c692..d9dc8d004 100644
--- a/src/tools/rustfmt/src/imports.rs
+++ b/src/tools/rustfmt/src/imports.rs
@@ -490,7 +490,7 @@ impl UseTree {
);
result.path.push(UseSegment { kind, version });
}
- UseTreeKind::Simple(ref rename, ..) => {
+ UseTreeKind::Simple(ref rename) => {
// If the path has leading double colons and is composed of only 2 segments, then we
// bypass the call to path_to_imported_ident which would get only the ident and
// lose the path root, e.g., `that` in `::that`.