From: Zack M. Davis Date: Sat, 6 Jan 2018 17:58:05 +0000 (-0800) Subject: clean up an unused pair of parentheses X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~3^2~58^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=16bb93688a849d2af3788cba17ea7486e29d8f73;p=cargo.git 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). --- 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())) } }