about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexis (Poliorcetics) Bourget <ab_github@poliorcetiq.eu>2023-05-07 09:42:52 +0200
committerAlexis (Poliorcetics) Bourget <ab_github@poliorcetiq.eu>2023-05-07 09:42:52 +0200
commit900d6030e7a5b4cfd5f4d28d0f6c266dc533625e (patch)
tree0691d6d2be87a481c7418318a17602dd8a4df738
parent3d70ba7f946fca995d4b6067677f2010288e9767 (diff)
downloadrust-900d6030e7a5b4cfd5f4d28d0f6c266dc533625e.tar.gz
rust-900d6030e7a5b4cfd5f4d28d0f6c266dc533625e.zip
fix: remove useless `return`s
-rw-r--r--crates/flycheck/src/lib.rs2
-rw-r--r--crates/parser/src/grammar/expressions.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/flycheck/src/lib.rs b/crates/flycheck/src/lib.rs
index accb14a51de..7e78178dde2 100644
--- a/crates/flycheck/src/lib.rs
+++ b/crates/flycheck/src/lib.rs
@@ -485,7 +485,7 @@ impl CargoActor {
 
             error.push_str(line);
             error.push('\n');
-            return false;
+            false
         };
         let output = streaming_output(
             self.stdout,
diff --git a/crates/parser/src/grammar/expressions.rs b/crates/parser/src/grammar/expressions.rs
index a884d8b6ec8..e6fb9e9d335 100644
--- a/crates/parser/src/grammar/expressions.rs
+++ b/crates/parser/src/grammar/expressions.rs
@@ -417,7 +417,7 @@ fn postfix_expr(
         allow_calls = true;
         block_like = BlockLike::NotBlock;
     }
-    return (lhs, block_like);
+    (lhs, block_like)
 }
 
 fn postfix_dot_expr<const FLOAT_RECOVERY: bool>(