From 9123cbefc87cd55d8b9780736bd4026156fb4e43 Mon Sep 17 00:00:00 2001 From: Jose Torres Date: Mon, 15 Jun 2026 22:37:57 -0400 Subject: [PATCH] style(lib): remove unnecessary_semicolon lint --- Cargo.toml | 1 - src/client/dispatch.rs | 2 +- src/proto/h1/conn.rs | 2 +- src/proto/h2/client.rs | 4 ++-- src/server/conn/http1.rs | 4 ++-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 646974ca0d..d26d464169 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -151,7 +151,6 @@ single_match_else = "allow" # TODO: easy fix struct_excessive_bools = "allow" # TODO: bogus lint? trivially_copy_pass_by_ref = "allow" uninlined_format_args = "allow" # TODO: easy fix -unnecessary_semicolon = "allow" # TODO: easy fix unnecessary_trailing_comma = "allow" unnested_or_patterns = "allow" unused_async = "allow" # TODO: is it for API? diff --git a/src/client/dispatch.rs b/src/client/dispatch.rs index d02caffc2d..0ff3e7c25f 100644 --- a/src/client/dispatch.rs +++ b/src/client/dispatch.rs @@ -370,7 +370,7 @@ where this.call_back.set(Some(call_back)); return Poll::Pending; } - }; + } trace!("send_when canceled"); // Tell pipe_task to reset the h2 stream so that // RST_STREAM is sent and flow-control capacity freed. diff --git a/src/proto/h1/conn.rs b/src/proto/h1/conn.rs index 45e5ab2280..2fcf0d6d4a 100644 --- a/src/proto/h1/conn.rs +++ b/src/proto/h1/conn.rs @@ -529,7 +529,7 @@ where return } Reading::Init => (), - }; + } match self.state.writing { Writing::Body(..) => return, diff --git a/src/proto/h2/client.rs b/src/proto/h2/client.rs index ca3b663a26..4803dba0f1 100644 --- a/src/proto/h2/client.rs +++ b/src/proto/h2/client.rs @@ -510,7 +510,7 @@ where return Poll::Ready(()); } Poll::Pending => (), - }; + } Poll::Pending } } @@ -688,7 +688,7 @@ where Poll::Ready(Err(crate::Error::new_h2(err))) }; } - }; + } // If we were waiting on pending open // continue where we left off. diff --git a/src/server/conn/http1.rs b/src/server/conn/http1.rs index c4365c60f6..fb6993c82b 100644 --- a/src/server/conn/http1.rs +++ b/src/server/conn/http1.rs @@ -225,7 +225,7 @@ where // error letting them know about that. pending.manual(); } - }; + } Poll::Ready(Ok(())) } Err(e) => Poll::Ready(Err(e)), @@ -479,7 +479,7 @@ impl Builder { .check(self.h1_header_read_timeout, "header_read_timeout") { conn.set_http1_header_read_timeout(dur); - }; + } if let Some(writev) = self.h1_writev { if writev { conn.set_write_strategy_queue();