mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -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
|
||||
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'
|
||||
|
|
|
@ -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!"[..])))
|
||||
}))
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue