From 202b51bc7b6999900e06ec2cfb8d72fe9aa4af29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 21 Mar 2021 15:33:18 +0100 Subject: a lot of clippy::style fixes --- crates/tt/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'crates/tt') diff --git a/crates/tt/src/lib.rs b/crates/tt/src/lib.rs index 9d9a01e30..bed44d600 100644 --- a/crates/tt/src/lib.rs +++ b/crates/tt/src/lib.rs @@ -239,9 +239,8 @@ impl Subtree { let mut res = String::new(); res.push_str(delim.0); - let mut iter = self.token_trees.iter(); let mut last = None; - while let Some(child) = iter.next() { + for child in &self.token_trees { let s = match child { TokenTree::Leaf(it) => { let s = match it { -- cgit v1.2.3