mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
chore: apply rustfmt to all crates (#917)
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
extern crate tokio_executor;
|
||||
extern crate futures;
|
||||
extern crate tokio_executor;
|
||||
|
||||
use futures::{future::lazy, Future};
|
||||
use tokio_executor::*;
|
||||
use futures::{Future, future::lazy};
|
||||
|
||||
mod out_of_executor_context {
|
||||
use super::*;
|
||||
|
||||
fn test<F, E>(spawn: F)
|
||||
where
|
||||
F: Fn(Box<Future<Item=(), Error=()> + Send>) -> Result<(), E>,
|
||||
F: Fn(Box<Future<Item = (), Error = ()> + Send>) -> Result<(), E>,
|
||||
{
|
||||
let res = spawn(Box::new(lazy(|| Ok(()))));
|
||||
assert!(res.is_err());
|
||||
|
||||
Reference in New Issue
Block a user