cargo fmt

This commit is contained in:
Yuki Okushi 2019-11-14 22:12:54 +09:00
parent ad1e583785
commit 2af0dfd7f8
7 changed files with 9 additions and 9 deletions

View File

@ -445,7 +445,7 @@ impl Accept {
delay(Instant::now() + Duration::from_millis(510)).await; delay(Instant::now() + Duration::from_millis(510)).await;
let _ = r.set_readiness(mio::Ready::readable()); let _ = r.set_readiness(mio::Ready::readable());
} }
.boxed(), .boxed(),
); );
return; return;
} }

View File

@ -326,7 +326,7 @@ impl ServerBuilder {
async move { async move {
Worker::start(rx1, rx2, services, avail, timeout); Worker::start(rx1, rx2, services, avail, timeout);
} }
.boxed(), .boxed(),
); );
worker worker
@ -401,7 +401,7 @@ impl ServerBuilder {
.await; .await;
System::current().stop(); System::current().stop();
} }
.boxed(), .boxed(),
); );
} }
ready(()) ready(())

View File

@ -139,7 +139,7 @@ impl InternalServiceFactory for ConfiguredService {
} }
return Ok(res); return Ok(res);
} }
.boxed_local() .boxed_local()
} }
} }
@ -266,6 +266,6 @@ where
} }
}; };
} }
.boxed_local() .boxed_local()
} }
} }

View File

@ -87,7 +87,7 @@ where
let _ = f.await; let _ = f.await;
drop(guard); drop(guard);
} }
.boxed_local(), .boxed_local(),
); );
ok(()) ok(())
} else { } else {

View File

@ -92,7 +92,7 @@ impl<T: AsyncRead + AsyncWrite + Unpin + 'static, P> Service for OpensslAcceptor
let acc = acc; let acc = acc;
tokio_openssl::accept(&acc, io).await tokio_openssl::accept(&acc, io).await
} }
.boxed_local::<'static>(), .boxed_local::<'static>(),
params: Some(params), params: Some(params),
} }
} }

View File

@ -187,7 +187,7 @@ impl Worker {
} }
wrk.await wrk.await
} }
.boxed_local(), .boxed_local(),
); );
} }

View File

@ -166,7 +166,7 @@ impl<T> Receiver<T> {
self.state = State::Closed(value); self.state = State::Closed(value);
} }
State::Closed(_) => {}, State::Closed(_) => {}
}; };
} }
} }