Skip to content

Commit ac64a53

Browse files
committed
Avoid an unnecessary local variable.
1 parent 6fc2c48 commit ac64a53

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-2
lines changed

compiler/rustc_parse/src/parser/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1241,8 +1241,7 @@ impl<'a> Parser<'a> {
12411241
match self.token.kind {
12421242
token::OpenDelim(..) => {
12431243
// Grab the tokens within the delimiters.
1244-
let tree_cursor = &self.token_cursor.tree_cursor;
1245-
let stream = tree_cursor.stream.clone();
1244+
let stream = self.token_cursor.tree_cursor.stream.clone();
12461245
let (_, delim, span) = *self.token_cursor.stack.last().unwrap();
12471246

12481247
// Advance the token cursor through the entire delimited

0 commit comments

Comments
 (0)