Avoid an unnecessary local variable.

This commit is contained in:
Nicholas Nethercote 2023-07-31 16:57:35 +10:00
parent 6fc2c481e5
commit ac64a53e17

View File

@ -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