diff --git a/components/style/values/specified/color.rs b/components/style/values/specified/color.rs index 2c961dea86a..7fe97f45ccd 100644 --- a/components/style/values/specified/color.rs +++ b/components/style/values/specified/color.rs @@ -125,16 +125,17 @@ impl Color { /// Parse a color, with quirks. /// /// - pub fn parse_quirky<'i, 't>(context: &ParserContext, - input: &mut Parser<'i, 't>, - allow_quirks: AllowQuirks) - -> Result> { + pub fn parse_quirky<'i, 't>( + context: &ParserContext, + input: &mut Parser<'i, 't>, + allow_quirks: AllowQuirks, + ) -> Result> { input.try(|i| Self::parse(context, i)).or_else(|e| { if !allow_quirks.allowed(context.quirks_mode) { return Err(e); } Color::parse_quirky_color(input) - .map(|rgba| Color::rgba(rgba)) + .map(Color::rgba) .map_err(|_| e) }) }