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 @@ pub fn parse_token_tree(&mut self) -> TokenTree {
match self.token.kind { match self.token.kind {
token::OpenDelim(..) => { token::OpenDelim(..) => {
// Grab the tokens within the delimiters. // Grab the tokens within the delimiters.
let tree_cursor = &self.token_cursor.tree_cursor; let stream = self.token_cursor.tree_cursor.stream.clone();
let stream = tree_cursor.stream.clone();
let (_, delim, span) = *self.token_cursor.stack.last().unwrap(); let (_, delim, span) = *self.token_cursor.stack.last().unwrap();
// Advance the token cursor through the entire delimited // Advance the token cursor through the entire delimited