summaryrefslogtreecommitdiff
path: root/tools/hyper_hello/hyper_hello.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-01-31 04:49:13 -0500
committerGitHub <noreply@github.com>2020-01-31 04:49:13 -0500
commitaf081d7449d73ff023b817a30c99236527567aac (patch)
tree332d3d6e5ef0579e8384ba6a4e3ae5e26a55f75a /tools/hyper_hello/hyper_hello.rs
parent97b2a0bb958549e298cd137778053210a05d85d8 (diff)
upgrade: Rust 1.41.0 (#3838)
Diffstat (limited to 'tools/hyper_hello/hyper_hello.rs')
-rw-r--r--tools/hyper_hello/hyper_hello.rs4
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!"[..])))
}))
}
});