From 5987926c8717a585d85504b994119e776064769b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 16 Mar 2024 17:48:44 +0000 Subject: [PATCH 1/2] chore(deps): Bump mio from 0.8.8 to 0.8.11 Bumps [mio](https://github.com/tokio-rs/mio) from 0.8.8 to 0.8.11. - [Release notes](https://github.com/tokio-rs/mio/releases) - [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md) - [Commits](https://github.com/tokio-rs/mio/compare/v0.8.8...v0.8.11) --- updated-dependencies: - dependency-name: mio dependency-type: indirect ... Signed-off-by: dependabot[bot] --- Cargo.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c2213f7..4b9539a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -329,9 +329,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.148" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cdc71e17332e86d2e1d38c1f99edcb6288ee11b815fb1a4b049eaa2114d369b" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "log" @@ -381,9 +381,9 @@ dependencies = [ [[package]] name = "mio" -version = "0.8.8" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "wasi", From 3fc7dddba02daee5804f45095a40747804f478d5 Mon Sep 17 00:00:00 2001 From: Corentin Machu Date: Sat, 16 Mar 2024 18:53:25 +0100 Subject: [PATCH 2/2] fix(clippy): Remove block in condition --- src/http2/stream.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/http2/stream.rs b/src/http2/stream.rs index 1129636..a313c74 100644 --- a/src/http2/stream.rs +++ b/src/http2/stream.rs @@ -111,10 +111,10 @@ impl Stream { ) -> ConnectionResult<()> { let headers = self.request_headers.as_ref().unwrap(); - match headers.get_type().map_err(|e| { - debug!("Bad request received: {:?}", e); - ConnectionError::BadRequest - })? { + match headers + .get_type() + .map_err(|_| ConnectionError::BadRequest)? + { RequestType::Get => { let mut response = handle_request(headers, config).await; let mut serialize_buffer = BytesMut::with_capacity(8192);