mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
upgrade: Rust 1.41.0 (#3838)
This commit is contained in:
parent
97b2a0bb95
commit
af081d7449
2 changed files with 3 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
||||||
- name: Install rust
|
- name: Install rust
|
||||||
uses: hecrj/setup-rust-action@v1
|
uses: hecrj/setup-rust-action@v1
|
||||||
with:
|
with:
|
||||||
rust-version: "1.40.0"
|
rust-version: "1.41.0"
|
||||||
|
|
||||||
- name: Install clippy and rustfmt
|
- name: Install clippy and rustfmt
|
||||||
if: matrix.kind == 'lint'
|
if: matrix.kind == 'lint'
|
||||||
|
|
|
@ -28,8 +28,8 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||||
// `service_fn` is a helper to convert a function that
|
// `service_fn` is a helper to convert a function that
|
||||||
// returns a Response into a `Service`.
|
// returns a Response into a `Service`.
|
||||||
async {
|
async {
|
||||||
Just::Ok(service_fn(|_req| {
|
Just::Ok(service_fn(|_req| async {
|
||||||
async { Just::Ok(Response::new(Body::from(&b"Hello World!"[..]))) }
|
Just::Ok(Response::new(Body::from(&b"Hello World!"[..])))
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue