From 9539724e8bf2a0109eeff3bec9fb49309de0f5f3 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sat, 13 Oct 2012 17:07:14 -0700 Subject: Remove parentheses from closure argument types --- src/libstd/future.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/future.rs') diff --git a/src/libstd/future.rs b/src/libstd/future.rs index 17b487f16de..31144740c8a 100644 --- a/src/libstd/future.rs +++ b/src/libstd/future.rs @@ -51,7 +51,7 @@ impl Future { get_ref(self) } - fn with(blk: fn((&A)) -> B) -> B { + fn with(blk: fn(&A) -> B) -> B { //! Work with the value without copying it with(&self, blk) @@ -164,7 +164,7 @@ pub fn get(future: &Future) -> A { *get_ref(future) } -pub fn with(future: &Future, blk: fn((&A)) -> B) -> B { +pub fn with(future: &Future, blk: fn(&A) -> B) -> B { //! Work with the value without copying it blk(get_ref(future)) -- cgit 1.4.1-3-g733a5