From d9b78cb400524ee8081571290b5c82cad6c87165 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 17 Jul 2022 21:32:20 +0900 Subject: [PATCH] Fix clippy::needless_return warning in test ``` warning: unneeded `return` statement --> tests/std.rs:80:5 | 80 | return ret; | ^^^^^^^^^^^ help: remove `return`: `ret` | = note: `#[warn(clippy::needless_return)]` on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return ``` --- tests/std.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/std.rs b/tests/std.rs index 26112c8..d14f64f 100644 --- a/tests/std.rs +++ b/tests/std.rs @@ -76,7 +76,7 @@ pub async fn run_output(mut cmd: Command) -> String { .await .unwrap(); assert!(p.status().await.unwrap().success()); - return ret; + ret } #[test]