mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
style: Fix indentation in calc parsing code.
This commit is contained in:
parent
c11d398010
commit
dae17dcaf3
1 changed files with 19 additions and 23 deletions
|
@ -592,13 +592,11 @@ impl CalcLengthOrPercentage {
|
||||||
Ok(Token::Delim('+')) => {
|
Ok(Token::Delim('+')) => {
|
||||||
products.push(try!(CalcLengthOrPercentage::parse_product(input, expected_unit)));
|
products.push(try!(CalcLengthOrPercentage::parse_product(input, expected_unit)));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(Token::Delim('-')) => {
|
Ok(Token::Delim('-')) => {
|
||||||
let mut right = try!(CalcLengthOrPercentage::parse_product(input, expected_unit));
|
let mut right = try!(CalcLengthOrPercentage::parse_product(input, expected_unit));
|
||||||
right.values.push(CalcValueNode::Number(-1.));
|
right.values.push(CalcValueNode::Number(-1.));
|
||||||
products.push(right);
|
products.push(right);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ => {
|
_ => {
|
||||||
return Err(());
|
return Err(());
|
||||||
}
|
}
|
||||||
|
@ -610,8 +608,6 @@ impl CalcLengthOrPercentage {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Ok(CalcSumNode { products: products })
|
Ok(CalcSumNode { products: products })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue