mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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
|
@ -197,7 +197,7 @@ pub unsafe fn get_array_index_from_id(_cx: *mut JSContext, id: HandleId) -> Opti
|
|||
let first_char = char::decode_utf16(chars.iter().cloned())
|
||||
.next()
|
||||
.map_or('\0', |r| r.unwrap_or('\0'));
|
||||
if !('a'..='z').contains(&first_char) {
|
||||
if !first_char.is_ascii_lowercase() {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue