summaryrefslogtreecommitdiff
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
parent97b2a0bb958549e298cd137778053210a05d85d8 (diff)
upgrade: Rust 1.41.0 (#3838)
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--tools/hyper_hello/hyper_hello.rs4
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!"[..])))
}))
}
});