Skip to content

Commit 9de696b

Browse files
committed
Remove some unnecessary (and badly named) local variables.
1 parent 27fb598 commit 9de696b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

compiler/rustc_expand/src/mbe/transcribe.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,15 @@ pub(super) fn transcribe<'a>(
220220
MatchedTokenTree(tt) => {
221221
// `tt`s are emitted into the output stream directly as "raw tokens",
222222
// without wrapping them into groups.
223-
let token = tt.clone();
224-
result.push(token);
223+
result.push(tt.clone());
225224
}
226225
MatchedNonterminal(nt) => {
227226
// Other variables are emitted into the output stream as groups with
228227
// `Delimiter::Invisible` to maintain parsing priorities.
229228
// `Interpolated` is currently used for such groups in rustc parser.
230229
marker.visit_span(&mut sp);
231-
let token = TokenTree::token_alone(token::Interpolated(nt.clone()), sp);
232-
result.push(token);
230+
result
231+
.push(TokenTree::token_alone(token::Interpolated(nt.clone()), sp));
233232
}
234233
MatchedSeq(..) => {
235234
// We were unable to descend far enough. This is an error.

0 commit comments

Comments
 (0)