diff options
Diffstat (limited to 'tools/hyper_hello/hyper_hello.rs')
-rw-r--r-- | tools/hyper_hello/hyper_hello.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<dyn Error>> { // `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!"[..]))) })) } }); |