diff options
Diffstat (limited to 'crates/mbe/src/benchmark.rs')
-rw-r--r-- | crates/mbe/src/benchmark.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/mbe/src/benchmark.rs b/crates/mbe/src/benchmark.rs index bd8ea6452..ba814a2e1 100644 --- a/crates/mbe/src/benchmark.rs +++ b/crates/mbe/src/benchmark.rs | |||
@@ -165,7 +165,7 @@ fn invocation_fixtures(rules: &FxHashMap<String, MacroRules>) -> Vec<(String, tt | |||
165 | } | 165 | } |
166 | Separator::Puncts(puncts) => { | 166 | Separator::Puncts(puncts) => { |
167 | for it in puncts { | 167 | for it in puncts { |
168 | parent.token_trees.push(tt::Leaf::Punct(it.clone()).into()) | 168 | parent.token_trees.push(tt::Leaf::Punct(*it).into()) |
169 | } | 169 | } |
170 | } | 170 | } |
171 | }; | 171 | }; |
@@ -174,8 +174,7 @@ fn invocation_fixtures(rules: &FxHashMap<String, MacroRules>) -> Vec<(String, tt | |||
174 | } | 174 | } |
175 | } | 175 | } |
176 | Op::Subtree { tokens, delimiter } => { | 176 | Op::Subtree { tokens, delimiter } => { |
177 | let mut subtree = | 177 | let mut subtree = tt::Subtree { delimiter: *delimiter, token_trees: Vec::new() }; |
178 | tt::Subtree { delimiter: delimiter.clone(), token_trees: Vec::new() }; | ||
179 | tokens.iter().for_each(|it| { | 178 | tokens.iter().for_each(|it| { |
180 | collect_from_op(it, &mut subtree, seed); | 179 | collect_from_op(it, &mut subtree, seed); |
181 | }); | 180 | }); |