mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Stop using the deprecated range function.
This commit is contained in:
parent
c4b7979450
commit
4d41f1c991
17 changed files with 27 additions and 28 deletions
|
@ -473,7 +473,7 @@ pub fn find_enum_string_index(cx: *mut JSContext,
|
|||
|
||||
Ok(values.iter().position(|value| {
|
||||
value.len() == length as usize &&
|
||||
range(0, length as usize).all(|j| {
|
||||
(0..length as usize).all(|j| {
|
||||
value.as_bytes()[j] as u16 == *chars.offset(j as isize)
|
||||
})
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue