]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/unused.rs
don't restuct references just to reborrow
[rust.git] / compiler / rustc_lint / src / unused.rs
index d628a18dd01c5875c36e5ad8bebb8940b8f89cc6..3b8df61a0eab771a704f9ed9006bbd1807b612fa 100644 (file)
@@ -1279,7 +1279,7 @@ impl UnusedImportBraces {
     fn check_use_tree(&self, cx: &EarlyContext<'_>, use_tree: &ast::UseTree, item: &ast::Item) {
         if let ast::UseTreeKind::Nested(ref items) = use_tree.kind {
             // Recursively check nested UseTrees
-            for &(ref tree, _) in items {
+            for (tree, _) in items {
                 self.check_use_tree(cx, tree, item);
             }