From b236593b60195dd25b53fefbb6b3f47b422b2db9 Mon Sep 17 00:00:00 2001 From: katelyn martin Date: Sat, 10 Oct 2026 00:00:00 +0000 Subject: [PATCH] style(proto): enforce clippy:let_unit_value see https://github.com/hyperium/hyper/issues/4071. this commit addresses the `let_unit_value` clippy lint. only two sites are affected, relating to tracing spans. Signed-off-by: katelyn martin --- Cargo.toml | 1 - src/proto/h1/role.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f7f7f1e6c4..33fa8fee91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -120,7 +120,6 @@ checked_conversions = "allow" else_if_without_else = "allow" float_arithmetic = "allow" indexing_slicing = "allow" -let_unit_value = "allow" match_wild_err_arm = "allow" multiple_inherent_impl = "allow" multiple_unsafe_ops_per_block = "allow" diff --git a/src/proto/h1/role.rs b/src/proto/h1/role.rs index fce1df78af..46312286ca 100644 --- a/src/proto/h1/role.rs +++ b/src/proto/h1/role.rs @@ -83,7 +83,7 @@ where return Ok(None); } - let _entered = trace_span!("parse_headers"); + trace_span!("parse_headers"); if let Some(prev_len) = prev_len { if !is_complete_fast(bytes, prev_len) { @@ -124,7 +124,7 @@ pub(super) fn encode_headers( where T: Http1Transaction, { - let _entered = trace_span!("encode_headers"); + trace_span!("encode_headers"); T::encode(enc, dst) }