diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-07-31 16:57:35 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-08-02 10:29:13 +1000 |
| commit | ac64a53e17097f87de8913e372a0baa99e58e31e (patch) | |
| tree | ecf5a291b791f40bf108707719ae471221c493a3 /compiler/rustc_parse/src | |
| parent | 6fc2c481e5a7daf1873ccc34926f1c0387979569 (diff) | |
| download | rust-ac64a53e17097f87de8913e372a0baa99e58e31e.tar.gz rust-ac64a53e17097f87de8913e372a0baa99e58e31e.zip | |
Avoid an unnecessary local variable.
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 27a8af630ce..f0d2411a7a6 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -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 |
