mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Manual fixups so that the rustfmt output won't trigger tidy.
This commit is contained in:
parent
b292f78363
commit
f7ae1a37e3
40 changed files with 443 additions and 416 deletions
|
@ -366,25 +366,24 @@ fn parse_declaration_value_block<'i, 't>(
|
|||
token.serialization_type()
|
||||
}
|
||||
Token::BadUrl(u) => {
|
||||
return Err(input.new_custom_error(StyleParseErrorKind::BadUrlInDeclarationValueBlock(u)))
|
||||
let e = StyleParseErrorKind::BadUrlInDeclarationValueBlock(u);
|
||||
return Err(input.new_custom_error(e))
|
||||
}
|
||||
Token::BadString(s) => {
|
||||
return Err(input.new_custom_error(StyleParseErrorKind::BadStringInDeclarationValueBlock(s)))
|
||||
let e = StyleParseErrorKind::BadStringInDeclarationValueBlock(s);
|
||||
return Err(input.new_custom_error(e))
|
||||
}
|
||||
Token::CloseParenthesis => {
|
||||
return Err(input.new_custom_error(
|
||||
StyleParseErrorKind::UnbalancedCloseParenthesisInDeclarationValueBlock
|
||||
))
|
||||
let e = StyleParseErrorKind::UnbalancedCloseParenthesisInDeclarationValueBlock;
|
||||
return Err(input.new_custom_error(e))
|
||||
}
|
||||
Token::CloseSquareBracket => {
|
||||
return Err(input.new_custom_error(
|
||||
StyleParseErrorKind::UnbalancedCloseSquareBracketInDeclarationValueBlock
|
||||
))
|
||||
let e = StyleParseErrorKind::UnbalancedCloseSquareBracketInDeclarationValueBlock;
|
||||
return Err(input.new_custom_error(e))
|
||||
}
|
||||
Token::CloseCurlyBracket => {
|
||||
return Err(input.new_custom_error(
|
||||
StyleParseErrorKind::UnbalancedCloseCurlyBracketInDeclarationValueBlock
|
||||
))
|
||||
let e = StyleParseErrorKind::UnbalancedCloseCurlyBracketInDeclarationValueBlock;
|
||||
return Err(input.new_custom_error(e))
|
||||
}
|
||||
Token::Function(ref name) => {
|
||||
if name.eq_ignore_ascii_case("var") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue