mirror of
https://github.com/servo/servo.git
synced 2025-08-16 02:45:36 +01:00
style: Avoid unused context
argument.
In custom_properties::SpecifiedValue::parse. It's not a big deal now, but it's useful to simplify testing this stuff, since it avoids forcing us to mock it.
This commit is contained in:
parent
3f4afbafab
commit
8ea275a376
3 changed files with 13 additions and 12 deletions
|
@ -1635,7 +1635,7 @@ impl PropertyDeclaration {
|
|||
// This probably affects some test results.
|
||||
let value = match input.try(|i| CSSWideKeyword::parse(i)) {
|
||||
Ok(keyword) => DeclaredValueOwned::CSSWideKeyword(keyword),
|
||||
Err(()) => match ::custom_properties::SpecifiedValue::parse(context, input) {
|
||||
Err(()) => match ::custom_properties::SpecifiedValue::parse(input) {
|
||||
Ok(value) => DeclaredValueOwned::Value(value),
|
||||
Err(e) => return Err(PropertyDeclarationParseError::InvalidValue(name.to_string().into(),
|
||||
ValueParseError::from_parse_error(e))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue