Fix some clippy lints
This commit is contained in:
parent
b7ebc6b0c1
commit
0ad3dce83a
9 changed files with 28 additions and 33 deletions
|
@ -1859,7 +1859,7 @@ impl<T: Iterator<Item = char>> Parser<T> {
|
|||
}
|
||||
|
||||
let n2 = self.decode_hex_escape()?;
|
||||
if n2 < 0xDC00 || n2 > 0xDFFF {
|
||||
if !(0xDC00..=0xDFFF).contains(&n2) {
|
||||
return self.error(LoneLeadingSurrogateInHexEscape);
|
||||
}
|
||||
let c =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue