summaryrefslogtreecommitdiffstats
path: root/tokio-executor/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio-executor/src/lib.rs')
-rw-r--r--tokio-executor/src/lib.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/tokio-executor/src/lib.rs b/tokio-executor/src/lib.rs
index c9a0217c..db9c1781 100644
--- a/tokio-executor/src/lib.rs
+++ b/tokio-executor/src/lib.rs
@@ -134,8 +134,10 @@ pub trait Executor {
/// # }
/// # fn main() {}
/// ```
- fn spawn(&mut self, future: Box<Future<Item = (), Error = ()> + Send>)
- -> Result<(), SpawnError>;
+ fn spawn(
+ &mut self,
+ future: Box<Future<Item = (), Error = ()> + Send>,
+ ) -> Result<(), SpawnError>;
/// Provides a best effort **hint** to whether or not `spawn` will succeed.
///
@@ -178,9 +180,10 @@ pub trait Executor {
}
impl<E: Executor + ?Sized> Executor for Box<E> {
- fn spawn(&mut self, future: Box<Future<Item = (), Error = ()> + Send>)
- -> Result<(), SpawnError>
- {
+ fn spawn(
+ &mut self,
+ future: Box<Future<Item = (), Error = ()> + Send>,
+ ) -> Result<(), SpawnError> {
(**self).spawn(future)
}