mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Remove free parsing functions, use Integer::parse and Number::parse instead.
This commit is contained in:
parent
45bbbac9d9
commit
93fc9ab63a
3 changed files with 57 additions and 68 deletions
|
@ -334,7 +334,7 @@
|
|||
Ok(t) => return Err(location.new_unexpected_token_error(t.clone())),
|
||||
Err(_) => break,
|
||||
};
|
||||
let counter_delta = input.try(|input| specified::parse_integer(context, input))
|
||||
let counter_delta = input.try(|input| specified::Integer::parse(context, input))
|
||||
.unwrap_or(specified::Integer::new(default_value));
|
||||
counters.push((counter_name, counter_delta))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue