projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44612f
)
clean up an unused pair of parentheses
author
Zack M. Davis
<code@zackmdavis.net>
Sat, 6 Jan 2018 17:58:05 +0000
(09:58 -0800)
committer
Zack 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
patch
|
blob
|
history
diff --git
a/src/cargo/ops/cargo_test.rs
b/src/cargo/ops/cargo_test.rs
index 7fac6785525162e163f8c1212687f89f1a5432f5..deb547b62376fe4a5e39d62ae0c907cb620df39a 100644
(file)
--- 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()))
}
}