From af081d7449d73ff023b817a30c99236527567aac Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 31 Jan 2020 04:49:13 -0500 Subject: upgrade: Rust 1.41.0 (#3838) --- tools/hyper_hello/hyper_hello.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/hyper_hello/hyper_hello.rs') diff --git a/tools/hyper_hello/hyper_hello.rs b/tools/hyper_hello/hyper_hello.rs index 39d4e55ef..897ca07e9 100644 --- a/tools/hyper_hello/hyper_hello.rs +++ b/tools/hyper_hello/hyper_hello.rs @@ -28,8 +28,8 @@ async fn main() -> Result<(), Box> { // `service_fn` is a helper to convert a function that // returns a Response into a `Service`. async { - Just::Ok(service_fn(|_req| { - async { Just::Ok(Response::new(Body::from(&b"Hello World!"[..]))) } + Just::Ok(service_fn(|_req| async { + Just::Ok(Response::new(Body::from(&b"Hello World!"[..]))) })) } }); -- cgit v1.2.3