Skip to content

Commit

Permalink
Remove some needless parentheses now reported on nightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Nov 7, 2019
1 parent 4dbc63e commit a8f645a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cargo-test-support/src/paths.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ impl CargoPathExt for Path {

fn move_in_time<F>(&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);
Expand All @@ -137,7 +137,7 @@ impl CargoPathExt for Path {

fn recurse<F>(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)
Expand All @@ -151,7 +151,7 @@ impl CargoPathExt for Path {

fn time_travel<F>(path: &Path, travel_amount: &F)
where
F: Fn(i64, u32) -> ((i64, u32)),
F: Fn(i64, u32) -> (i64, u32),
{
let stat = t!(path.symlink_metadata());

Expand Down

0 comments on commit a8f645a

Please sign in to comment.