mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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('+')) => {
|
||||
products.push(try!(CalcLengthOrPercentage::parse_product(input, expected_unit)));
|
||||
}
|
||||
|
||||
Ok(Token::Delim('-')) => {
|
||||
let mut right = try!(CalcLengthOrPercentage::parse_product(input, expected_unit));
|
||||
right.values.push(CalcValueNode::Number(-1.));
|
||||
products.push(right);
|
||||
}
|
||||
|
||||
_ => {
|
||||
return Err(());
|
||||
}
|
||||
|
@ -610,8 +608,6 @@ impl CalcLengthOrPercentage {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ok(CalcSumNode { products: products })
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue