From e91c9ec7fedd832da2b7974096850b84d22373e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 1 Dec 2017 21:45:57 +0100 Subject: [PATCH] style: Formatting nits in color parsing. --- components/style/values/specified/color.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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) }) }