From a8f645a9cad6d107e4a04aa7975a196e459815e4 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Thu, 7 Nov 2019 11:19:07 -0800 Subject: [PATCH] Remove some needless parentheses now reported on nightly. --- crates/cargo-test-support/src/paths.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/cargo-test-support/src/paths.rs b/crates/cargo-test-support/src/paths.rs index f2e15441a71..6618ef03172 100644 --- a/crates/cargo-test-support/src/paths.rs +++ b/crates/cargo-test-support/src/paths.rs @@ -127,7 +127,7 @@ impl CargoPathExt for Path { fn move_in_time(&self, travel_amount: F) where - F: Fn(i64, u32) -> ((i64, u32)), + F: Fn(i64, u32) -> (i64, u32), { if self.is_file() { time_travel(self, &travel_amount); @@ -137,7 +137,7 @@ impl CargoPathExt for Path { fn recurse(p: &Path, bad: &Path, travel_amount: &F) where - F: Fn(i64, u32) -> ((i64, u32)), + F: Fn(i64, u32) -> (i64, u32), { if p.is_file() { time_travel(p, travel_amount) @@ -151,7 +151,7 @@ impl CargoPathExt for Path { fn time_travel(path: &Path, travel_amount: &F) where - F: Fn(i64, u32) -> ((i64, u32)), + F: Fn(i64, u32) -> (i64, u32), { let stat = t!(path.symlink_metadata());