From 3a9c061dd32d084904e18ae32702cbbbcc03692a Mon Sep 17 00:00:00 2001 From: Jose Torres Date: Thu, 25 Jun 2026 21:05:23 -0400 Subject: [PATCH 1/2] style(proto): fix decimal_literal_representation lint --- Cargo.toml | 1 - src/proto/h2/mod.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e8a58b3a65..7df78aac89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -119,7 +119,6 @@ cast_possible_truncation = "allow" # TODO: consider cast_precision_loss = "allow" # TODO: consider checked_conversions = "allow" collapsible_match = "allow" -decimal_literal_representation = "allow" # TODO: consider else_if_without_else = "allow" enum_glob_use = "allow" float_arithmetic = "allow" diff --git a/src/proto/h2/mod.rs b/src/proto/h2/mod.rs index e3033ec5f5..d8ecff10e0 100644 --- a/src/proto/h2/mod.rs +++ b/src/proto/h2/mod.rs @@ -27,7 +27,7 @@ cfg_server! { } /// Default initial stream window size defined in HTTP2 spec. -pub(crate) const SPEC_WINDOW_SIZE: u32 = 65_535; +pub(crate) const SPEC_WINDOW_SIZE: u32 = 0xFFFF; // 65,535 // List of connection headers from RFC 9110 Section 7.6.1 // From e26a77045ff9c3d03fc32a8e4008c345950f1fc3 Mon Sep 17 00:00:00 2001 From: Jose Torres Date: Fri, 26 Jun 2026 11:34:55 -0400 Subject: [PATCH 2/2] style(proto): revert lint removal for readability purposes --- Cargo.toml | 1 + src/proto/h2/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 7df78aac89..f948b454bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -159,6 +159,7 @@ arbitrary_source_item_ordering = "allow" # order: std, deps, crate blanket_clippy_restriction_lints = "allow" # allowlist is better clone_on_ref_ptr = "allow" # Arc::clone(blah) is needlessly noisy cognitive_complexity = "allow" # is this ever useful? +decimal_literal_representation = "allow" # arguably more human-readable default_numeric_fallback = "allow" # too many false positives expect_used = "allow" # expect is self-documenting error_impl_error = "allow" # mod::Error is a fine name diff --git a/src/proto/h2/mod.rs b/src/proto/h2/mod.rs index d8ecff10e0..e3033ec5f5 100644 --- a/src/proto/h2/mod.rs +++ b/src/proto/h2/mod.rs @@ -27,7 +27,7 @@ cfg_server! { } /// Default initial stream window size defined in HTTP2 spec. -pub(crate) const SPEC_WINDOW_SIZE: u32 = 0xFFFF; // 65,535 +pub(crate) const SPEC_WINDOW_SIZE: u32 = 65_535; // List of connection headers from RFC 9110 Section 7.6.1 //