mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
No longer need for local variable in PropertyDeclaration::parse
This commit is contained in:
parent
dfa9e1aa4a
commit
b9f974ab33
1 changed files with 1 additions and 3 deletions
|
@ -1615,9 +1615,7 @@ impl PropertyDeclaration {
|
||||||
result_list: &mut Vec<PropertyDeclaration>,
|
result_list: &mut Vec<PropertyDeclaration>,
|
||||||
base_url: &Url,
|
base_url: &Url,
|
||||||
seen: &mut PropertyBitField) -> PropertyDeclarationParseResult {
|
seen: &mut PropertyBitField) -> PropertyDeclarationParseResult {
|
||||||
// FIXME: local variable to work around Rust #10683
|
match name.to_ascii_lower().as_slice() {
|
||||||
let name_lower = name.as_slice().to_ascii_lower();
|
|
||||||
match name_lower.as_slice() {
|
|
||||||
% for property in LONGHANDS:
|
% for property in LONGHANDS:
|
||||||
% if property.derived_from is None:
|
% if property.derived_from is None:
|
||||||
"${property.name}" => {
|
"${property.name}" => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue