Skip to content

Commit a8f645a

Browse files
committed
Remove some needless parentheses now reported on nightly.
1 parent 4dbc63e commit a8f645a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/cargo-test-support/src/paths.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl CargoPathExt for Path {
127127

128128
fn move_in_time<F>(&self, travel_amount: F)
129129
where
130-
F: Fn(i64, u32) -> ((i64, u32)),
130+
F: Fn(i64, u32) -> (i64, u32),
131131
{
132132
if self.is_file() {
133133
time_travel(self, &travel_amount);
@@ -137,7 +137,7 @@ impl CargoPathExt for Path {
137137

138138
fn recurse<F>(p: &Path, bad: &Path, travel_amount: &F)
139139
where
140-
F: Fn(i64, u32) -> ((i64, u32)),
140+
F: Fn(i64, u32) -> (i64, u32),
141141
{
142142
if p.is_file() {
143143
time_travel(p, travel_amount)
@@ -151,7 +151,7 @@ impl CargoPathExt for Path {
151151

152152
fn time_travel<F>(path: &Path, travel_amount: &F)
153153
where
154-
F: Fn(i64, u32) -> ((i64, u32)),
154+
F: Fn(i64, u32) -> (i64, u32),
155155
{
156156
let stat = t!(path.symlink_metadata());
157157

0 commit comments

Comments
 (0)