about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/parser/diagnostics.rs
diff options
context:
space:
mode:
authorEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2024-09-09 12:22:00 +0200
committerEduardo Sánchez Muñoz <eduardosm-dev@e64.io>2024-09-09 13:32:22 +0200
commit0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96 (patch)
treec180e16946093089cae099b227d33c675805b07a /compiler/rustc_parse/src/parser/diagnostics.rs
parentadf8d168af9334a8bf940824fcf4207d01e05ae5 (diff)
downloadrust-0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96.tar.gz
rust-0b20ffcb63b00acbbe70ae6f59a746bcde4c8b96.zip
Remove needless returns detected by clippy in the compiler
Diffstat (limited to 'compiler/rustc_parse/src/parser/diagnostics.rs')
-rw-r--r--compiler/rustc_parse/src/parser/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs
index f6f66821df7..bee73c58cb7 100644
--- a/compiler/rustc_parse/src/parser/diagnostics.rs
+++ b/compiler/rustc_parse/src/parser/diagnostics.rs
@@ -2553,7 +2553,7 @@ impl<'a> Parser<'a> {
                 err.delay_as_bug();
             }
         }
-        return Ok(false); // Don't continue.
+        Ok(false) // Don't continue.
     }
 
     /// Attempt to parse a generic const argument that has not been enclosed in braces.