Skip to content

Commit

Permalink
chore(ext): allow clippy::absurd_extreme_comparisons for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored and seanmonstar committed May 19, 2024
1 parent 5ecafcc commit b13b32a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ext/h1_reason_phrase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b13b32a

Please sign in to comment.