From b13b32acddb65d4f8f3e62cabc5a72dc1d0307d7 Mon Sep 17 00:00:00 2001 From: tottoto Date: Tue, 14 May 2024 19:56:32 +0900 Subject: [PATCH] chore(ext): allow clippy::absurd_extreme_comparisons for readability --- src/ext/h1_reason_phrase.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/h1_reason_phrase.rs b/src/ext/h1_reason_phrase.rs index b96c2bb4be..c6f5233345 100644 --- a/src/ext/h1_reason_phrase.rs +++ b/src/ext/h1_reason_phrase.rs @@ -147,7 +147,7 @@ const fn is_valid_byte(b: u8) -> bool { // // The 0xFF comparison is technically redundant, but it matches the text of the spec more // clearly and will be optimized away. - #[allow(unused_comparisons)] + #[allow(unused_comparisons, clippy::absurd_extreme_comparisons)] const fn is_obs_text(b: u8) -> bool { 0x80 <= b && b <= 0xFF }