summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorErick Tryzelaar <etryzelaar@iqt.org>2012-12-18 18:55:36 -0800
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2012-12-18 20:54:13 -0800
commit82a983de6803c7b1026ba0b553186306e842e427 (patch)
treeff4e9f945742ec4a118a89cb0e0fd0e7b85256c0 /src/libstd
parenta0ef334179714e0c3f1a3c7276543a0305db2c95 (diff)
downloadrust-82a983de6803c7b1026ba0b553186306e842e427.tar.gz
rust-82a983de6803c7b1026ba0b553186306e842e427.zip
Remove superfluous parentheses.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/par.rs8
1 files 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: Copy Owned, B: Copy Owned>(
 
 /// A parallel version of map.
 pub fn map<A: Copy Owned, B: Copy Owned>(
-    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: Copy Owned, B: Copy Owned>(
 
 /// A parallel version of mapi.
 pub fn mapi<A: Copy Owned, B: Copy Owned>(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<A: Copy Owned, B: Copy Owned>(
 }
 
 /// Returns true if the function holds for all elements in the vector.
-pub fn alli<A: Copy Owned>(xs: &[A], f: fn~(uint, (&A)) -> bool) -> bool {
+pub fn alli<A: Copy Owned>(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<A: Copy Owned>(xs: &[A], f: fn~(uint, (&A)) -> bool) -> bool {
 }
 
 /// Returns true if the function holds for any elements in the vector.
-pub fn any<A: Copy Owned>(xs: &[A], f: fn~(&(A)) -> bool) -> bool {
+pub fn any<A: Copy Owned>(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))