Merge pull request #12 from dart-lang/future

Changes to eliminate future flattening
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d9db81c..84b72c0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.3.4
+
+* Modify code to eliminate Future flattening.
+
 ## 1.3.3
 
 * Declare support for `async` 2.0.0.
diff --git a/lib/pool.dart b/lib/pool.dart
index 86f8363..ea3d2f0 100644
--- a/lib/pool.dart
+++ b/lib/pool.dart
@@ -122,7 +122,7 @@
     // synchronously in case the pool is closed immediately afterwards. Async
     // functions have an asynchronous gap between calling and running the body,
     // and [close] could be called during that gap. See #3.
-    return request().then<Future<T>>((resource) {
+    return request().then((resource) {
       return new Future<T>.sync(callback).whenComplete(resource.release);
     });
   }
diff --git a/pubspec.yaml b/pubspec.yaml
index b9c5c8d..a5f0434 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: pool
-version: 1.3.3
+version: 1.3.4
 author: Dart Team <misc@dartlang.org>
 description: A class for managing a finite pool of resources.
 homepage: https://github.com/dart-lang/pool