1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00

upgrade: Rust 1.41.0 (#3838)

This commit is contained in:
Ryan Dahl 2020-01-31 04:49:13 -05:00 committed by GitHub
parent 97b2a0bb95
commit af081d7449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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'

View file

@ -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!"[..])))
}))
}
});