diff options
-rw-r--r-- | .github/workflows/ci.yml | 2 | ||||
-rw-r--r-- | tools/hyper_hello/hyper_hello.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8ac875d4f..1be4e8546 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,7 @@ jobs: - name: Install rust uses: hecrj/setup-rust-action@v1 with: - rust-version: "1.40.0" + rust-version: "1.41.0" - name: Install clippy and rustfmt if: matrix.kind == 'lint' 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!"[..]))) })) } }); |