From 4fa3e8e82c29c24078aeb3110feac998b2042dcd Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Sun, 26 Feb 2017 10:39:10 +0100 Subject: [PATCH] Replace 1-variant match_ignore_ascii_case! with expect_ident_matching --- components/style/values/specified/length.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/components/style/values/specified/length.rs b/components/style/values/specified/length.rs index ba344eff300..c2e7cc0dc2f 100644 --- a/components/style/values/specified/length.rs +++ b/components/style/values/specified/length.rs @@ -1344,13 +1344,7 @@ impl Parse for MinLength { fn parse(_context: &ParserContext, input: &mut Parser) -> Result { input.try(ExtremumLength::parse).map(MinLength::ExtremumLength) .or_else(|()| input.try(LengthOrPercentage::parse_non_negative).map(MinLength::LengthOrPercentage)) - .or_else(|()| { - match_ignore_ascii_case! { try!(input.expect_ident()), - "auto" => - Ok(MinLength::Auto), - _ => Err(()) - } - }) + .or_else(|()| input.expect_ident_matching("auto").map(|()| MinLength::Auto)) } }