diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-10-13 17:07:14 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-11-20 16:39:30 -0800 |
| commit | 9539724e8bf2a0109eeff3bec9fb49309de0f5f3 (patch) | |
| tree | 7b0cdbb708a1278ae33cf7b0b10d3ac027313b07 /src/libstd/future.rs | |
| parent | 497a8b54b5b3f9daf0ec735d443c443ac29afeab (diff) | |
| download | rust-9539724e8bf2a0109eeff3bec9fb49309de0f5f3.tar.gz rust-9539724e8bf2a0109eeff3bec9fb49309de0f5f3.zip | |
Remove parentheses from closure argument types
Diffstat (limited to 'src/libstd/future.rs')
| -rw-r--r-- | src/libstd/future.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<A> Future<A> { get_ref(self) } - fn with<B>(blk: fn((&A)) -> B) -> B { + fn with<B>(blk: fn(&A) -> B) -> B { //! Work with the value without copying it with(&self, blk) @@ -164,7 +164,7 @@ pub fn get<A:Copy>(future: &Future<A>) -> A { *get_ref(future) } -pub fn with<A,B>(future: &Future<A>, blk: fn((&A)) -> B) -> B { +pub fn with<A,B>(future: &Future<A>, blk: fn(&A) -> B) -> B { //! Work with the value without copying it blk(get_ref(future)) |
