Skip to content

Commit bc8034b

Browse files
committed
fix: clippy suggestion
1 parent 4096950 commit bc8034b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/http-backend/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ fn is_private_ipv6(ip: &Ipv6Addr) -> bool {
518518
|| u128::from_be_bytes(ip.octets()) == 0x2001_0001_0000_0000_0000_0000_0000_0002
519519
|| matches!(ip.segments(), [0x2001, 3, _, _, _, _, _, _])
520520
|| matches!(ip.segments(), [0x2001, 4, 0x112, _, _, _, _, _])
521-
|| matches!(ip.segments(), [0x2001, b, _, _, _, _, _, _] if b >= 0x20 && b <= 0x3F)))
521+
|| matches!(ip.segments(), [0x2001, b, _, _, _, _, _, _] if (0x20..=0x3F).contains(&b))))
522522
|| matches!(ip.segments(), [0x2002, _, _, _, _, _, _, _])
523523
|| matches!(ip.segments(), [0x5f00, ..])
524524
|| ip.is_unique_local()

0 commit comments

Comments
 (0)