mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix some new warnings
This commit is contained in:
parent
112f1ddeba
commit
1d38bc0419
65 changed files with 179 additions and 175 deletions
|
@ -499,7 +499,7 @@ fn is_field_vchar(x: u8) -> bool {
|
|||
// https://tools.ietf.org/html/rfc5234#appendix-B.1
|
||||
pub fn is_vchar(x: u8) -> bool {
|
||||
match x {
|
||||
0x21...0x7E => true,
|
||||
0x21..=0x7E => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
@ -507,7 +507,7 @@ pub fn is_vchar(x: u8) -> bool {
|
|||
// http://tools.ietf.org/html/rfc7230#section-3.2.6
|
||||
pub fn is_obs_text(x: u8) -> bool {
|
||||
match x {
|
||||
0x80...0xFF => true,
|
||||
0x80..=0xFF => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue