diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-09-02 09:25:17 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-09-02 09:25:17 +0200 |
commit | 3831a0a4e0afd62f3d2ef0724fd23e69e7e61306 (patch) | |
tree | 47bdbdc41f1ff5b41fcf78bb8d3042c81a6745f2 /ports/geckolib | |
parent | 32b04b3f517cebcba34a23e6930860bbedb1431b (diff) | |
download | servo-3831a0a4e0afd62f3d2ef0724fd23e69e7e61306.tar.gz servo-3831a0a4e0afd62f3d2ef0724fd23e69e7e61306.zip |
Reformat a match expression
Diffstat (limited to 'ports/geckolib')
-rw-r--r-- | ports/geckolib/error_reporter.rs | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/ports/geckolib/error_reporter.rs b/ports/geckolib/error_reporter.rs index 09875015ed6..02b85ff4958 100644 --- a/ports/geckolib/error_reporter.rs +++ b/ports/geckolib/error_reporter.rs @@ -200,30 +200,42 @@ trait ErrorHelpers<'a> { fn extract_error_param<'a>(err: ParseError<'a>) -> Option<ErrorString<'a>> { Some(match err { - CssParseError::Basic(BasicParseError::UnexpectedToken(t)) => - ErrorString::UnexpectedToken(t), + CssParseError::Basic(BasicParseError::UnexpectedToken(t)) => { + ErrorString::UnexpectedToken(t) + } CssParseError::Basic(BasicParseError::AtRuleInvalid(i)) | CssParseError::Custom(SelectorParseError::Custom( - StyleParseError::UnsupportedAtRule(i))) => - ErrorString::Snippet(format!("@{}", escape_css_ident(&i)).into()), + StyleParseError::UnsupportedAtRule(i) + )) => { + ErrorString::Snippet(format!("@{}", escape_css_ident(&i)).into()) + } CssParseError::Custom(SelectorParseError::Custom( StyleParseError::PropertyDeclaration( - PropertyDeclarationParseError::InvalidValue(property, None)))) => - ErrorString::Snippet(property), + PropertyDeclarationParseError::InvalidValue(property, None) + ) + )) => { + ErrorString::Snippet(property) + } - CssParseError::Custom(SelectorParseError::UnexpectedIdent(ident)) => - ErrorString::Ident(ident), + CssParseError::Custom(SelectorParseError::UnexpectedIdent(ident)) => { + ErrorString::Ident(ident) + } CssParseError::Custom(SelectorParseError::Custom( StyleParseError::PropertyDeclaration( - PropertyDeclarationParseError::UnknownProperty(property)))) => - ErrorString::Ident(property), + PropertyDeclarationParseError::UnknownProperty(property) + ) + )) => { + ErrorString::Ident(property) + } CssParseError::Custom(SelectorParseError::Custom( - StyleParseError::UnexpectedTokenWithinNamespace(token))) => - ErrorString::UnexpectedToken(token), + StyleParseError::UnexpectedTokenWithinNamespace(token) + )) => { + ErrorString::UnexpectedToken(token) + } _ => return None, }) |