mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
fixed various clippy warnings (#31954)
This commit is contained in:
parent
c3360df918
commit
bd287df0d4
6 changed files with 6 additions and 6 deletions
|
@ -322,5 +322,5 @@ pub fn normalize_type_string(s: &str) -> String {
|
|||
fn is_ascii_printable(string: &str) -> bool {
|
||||
// Step 5.1 in Sec 5.1 of File API spec
|
||||
// <https://w3c.github.io/FileAPI/#constructorBlob>
|
||||
string.chars().all(|c| c >= '\x20' && c <= '\x7E')
|
||||
string.chars().all(|c| ('\x20'..='\x7E').contains(&c))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue