mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Avoid an unnecessary local variable.
This commit is contained in:
parent
6fc2c481e5
commit
ac64a53e17
@ -1241,8 +1241,7 @@ impl<'a> Parser<'a> {
|
||||
match self.token.kind {
|
||||
token::OpenDelim(..) => {
|
||||
// Grab the tokens within the delimiters.
|
||||
let tree_cursor = &self.token_cursor.tree_cursor;
|
||||
let stream = tree_cursor.stream.clone();
|
||||
let stream = self.token_cursor.tree_cursor.stream.clone();
|
||||
let (_, delim, span) = *self.token_cursor.stack.last().unwrap();
|
||||
|
||||
// Advance the token cursor through the entire delimited
|
||||
|
Loading…
Reference in New Issue
Block a user