clean up an unused pair of parentheses
authorZack M. Davis <code@zackmdavis.net>
Sat, 6 Jan 2018 17:58:05 +0000 (09:58 -0800)
committerZack M. Davis <code@zackmdavis.net>
Sat, 6 Jan 2018 17:58:05 +0000 (09:58 -0800)
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

index 7fac6785525162e163f8c1212687f89f1a5432f5..deb547b62376fe4a5e39d62ae0c907cb620df39a 100644 (file)
@@ -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()))
     }
 }