style: Fix indentation in calc parsing code.

This commit is contained in:
Emilio Cobos Álvarez 2017-03-08 16:54:10 +01:00
parent c11d398010
commit dae17dcaf3
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -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 })
} }