style(lib): apply latest rustfmt

This commit is contained in:
Sean McArthur
2020-02-06 11:41:25 -08:00
parent 141207769f
commit dd02254ae8
7 changed files with 42 additions and 58 deletions

View File

@@ -25,12 +25,10 @@ fn hello_world(b: &mut test::Bencher) {
std::thread::spawn(move || {
let addr = "127.0.0.1:0".parse().unwrap();
let make_svc = make_service_fn(|_| {
async {
Ok::<_, hyper::Error>(service_fn(|_| {
async { Ok::<_, hyper::Error>(Response::new(Body::from("Hello, World!"))) }
}))
}
let make_svc = make_service_fn(|_| async {
Ok::<_, hyper::Error>(service_fn(|_| async {
Ok::<_, hyper::Error>(Response::new(Body::from("Hello, World!")))
}))
});
let mut rt = tokio::runtime::Builder::new()