From 37ec84d09a8f090a475685787f6cc351cf2391b8 Mon Sep 17 00:00:00 2001 From: Igor Makarov Date: Sun, 10 Nov 2019 11:13:27 +0200 Subject: [PATCH] implement clippy suggestion to remove needless `return` --- crates/cargo-test-macro/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cargo-test-macro/src/lib.rs b/crates/cargo-test-macro/src/lib.rs index b16915762..dae129ade 100644 --- a/crates/cargo-test-macro/src/lib.rs +++ b/crates/cargo-test-macro/src/lib.rs @@ -52,7 +52,7 @@ pub fn cargo_test(attr: TokenStream, item: TokenStream) -> TokenStream { )))); } - return ret; + ret } fn contains_ident(t: &TokenStream, ident: &str) -> bool {