fixed various clippy warnings (#31954)

This commit is contained in:
Rosemary Ajayi 2024-03-31 19:58:37 +00:00 committed by GitHub
parent c3360df918
commit bd287df0d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View file

@ -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;
}