From c719b41bc4ba46e3e9e5d85f6efffab694e0f0ff Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Jun 2023 10:25:12 -0700 Subject: [PATCH] Update Rust to v1.70.0 (#687) * Update Rust to v1.70.0 * new clippy async/await nit --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Adam H. Leventhal --- dropshot/src/server.rs | 4 ++-- rust-toolchain.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dropshot/src/server.rs b/dropshot/src/server.rs index 4b8b879f..e57646b2 100644 --- a/dropshot/src/server.rs +++ b/dropshot/src/server.rs @@ -238,7 +238,7 @@ impl InnerHttpServerStarter { info!(log_close, "received request to begin graceful shutdown"); }); - tokio::spawn(async { graceful.await }) + tokio::spawn(graceful) } /// Set up an HTTP server bound on the specified address that runs @@ -529,7 +529,7 @@ impl InnerHttpsServerStarter { info!(log_close, "received request to begin graceful shutdown"); }); - tokio::spawn(async { graceful.await }) + tokio::spawn(graceful) } fn new( diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 564c0946..bc1a811d 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -4,5 +4,5 @@ # The intent is to keep this updated as new stable versions are relased. [toolchain] -channel = "1.69.0" +channel = "1.70.0" profile = "default"