From 16bb93688a849d2af3788cba17ea7486e29d8f73 Mon Sep 17 00:00:00 2001 From: "Zack M. Davis" Date: Sat, 6 Jan 2018 09:58:05 -0800 Subject: [PATCH] clean up an unused pair of parentheses While this might seem like too trivial of a stylistic nitpick to deserve its own commit, this is needed to unblock rust-lang/rust#46980 (which makes the unused-parens lint look at function arguments). --- src/cargo/ops/cargo_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/ops/cargo_test.rs b/src/cargo/ops/cargo_test.rs index 7fac67855..deb547b62 100644 --- a/src/cargo/ops/cargo_test.rs +++ b/src/cargo/ops/cargo_test.rs @@ -120,7 +120,7 @@ fn run_unit_tests(options: &TestOptions, let (kind, test, e) = errors.pop().unwrap(); Ok((Test::UnitTest(kind, test), vec![e])) } else { - Ok((Test::Multiple, errors.into_iter().map((|(_, _, e)| e)).collect())) + Ok((Test::Multiple, errors.into_iter().map(|(_, _, e)| e).collect())) } } -- 2.30.2