mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Reformat
This commit is contained in:
parent
7bb7c9a1e3
commit
4464354e2e
10 changed files with 42 additions and 21 deletions
|
@ -93,8 +93,9 @@ impl Time {
|
|||
Ok(&Token::Dimension {
|
||||
value, ref unit, ..
|
||||
}) if clamping_mode.is_ok(ParsingMode::DEFAULT, value) => {
|
||||
return Time::parse_dimension(value, unit, /* from_calc = */ false)
|
||||
.map_err(|()| location.new_custom_error(StyleParseErrorKind::UnspecifiedError));
|
||||
return Time::parse_dimension(value, unit, /* from_calc = */ false).map_err(|()| {
|
||||
location.new_custom_error(StyleParseErrorKind::UnspecifiedError)
|
||||
});
|
||||
},
|
||||
Ok(&Token::Function(ref name)) if name.eq_ignore_ascii_case("calc") => {},
|
||||
Ok(t) => return Err(location.new_unexpected_token_error(t.clone())),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue