about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-31 11:07:50 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-31 11:14:39 +1000
commitf8650114bd73e20416493d7ffc88615f917cd8d7 (patch)
treef1938e96b89fca6635d583446309f8c815f578b1
parent03a57254b56886c43464e23b74af484d11374623 (diff)
downloadrust-f8650114bd73e20416493d7ffc88615f917cd8d7.tar.gz
rust-f8650114bd73e20416493d7ffc88615f917cd8d7.zip
Remove an unnecessary `return` keyword.
-rw-r--r--compiler/rustc_parse/src/parser/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs
index 37b4c371c94..738f9914a0b 100644
--- a/compiler/rustc_parse/src/parser/mod.rs
+++ b/compiler/rustc_parse/src/parser/mod.rs
@@ -1172,7 +1172,7 @@ impl<'a> Parser<'a> {
             }
             i += 1;
         }
-        return looker(&token);
+        looker(&token)
     }
 
     /// Returns whether any of the given keywords are `dist` tokens ahead of the current one.