From 82a983de6803c7b1026ba0b553186306e842e427 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Tue, 18 Dec 2012 18:55:36 -0800 Subject: [PATCH] Remove superfluous parentheses. --- src/libstd/par.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libstd/par.rs b/src/libstd/par.rs index 55f88d4427c..10cbcaa0c3b 100644 --- a/src/libstd/par.rs +++ b/src/libstd/par.rs @@ -85,7 +85,7 @@ fn map_slices( /// A parallel version of map. pub fn map( - xs: &[A], f: fn~((&A)) -> B) -> ~[B] { + xs: &[A], f: fn~(&A) -> B) -> ~[B] { vec::concat(map_slices(xs, || { fn~(_base: uint, slice : &[A], copy f) -> ~[B] { vec::map(slice, |x| f(x)) @@ -95,7 +95,7 @@ pub fn map( /// A parallel version of mapi. pub fn mapi(xs: &[A], - f: fn~(uint, (&A)) -> B) -> ~[B] { + f: fn~(uint, &A) -> B) -> ~[B] { let slices = map_slices(xs, || { fn~(base: uint, slice : &[A], copy f) -> ~[B] { vec::mapi(slice, |i, x| { @@ -132,7 +132,7 @@ pub fn mapi_factory( } /// Returns true if the function holds for all elements in the vector. -pub fn alli(xs: &[A], f: fn~(uint, (&A)) -> bool) -> bool { +pub fn alli(xs: &[A], f: fn~(uint, &A) -> bool) -> bool { do vec::all(map_slices(xs, || { fn~(base: uint, slice : &[A], copy f) -> bool { vec::alli(slice, |i, x| { @@ -143,7 +143,7 @@ pub fn alli(xs: &[A], f: fn~(uint, (&A)) -> bool) -> bool { } /// Returns true if the function holds for any elements in the vector. -pub fn any(xs: &[A], f: fn~(&(A)) -> bool) -> bool { +pub fn any(xs: &[A], f: fn~(&A) -> bool) -> bool { do vec::any(map_slices(xs, || { fn~(_base : uint, slice: &[A], copy f) -> bool { vec::any(slice, |x| f(x))