mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Borrow input to match_ignore_ascii_case!
In cssparser version 0.11, this macro will stop implicitly borrowing its own input.
This commit is contained in:
parent
4fa3e8e82c
commit
0f2d000a23
21 changed files with 62 additions and 61 deletions
|
@ -1385,7 +1385,7 @@ impl Parse for MaxLength {
|
|||
input.try(ExtremumLength::parse).map(MaxLength::ExtremumLength)
|
||||
.or_else(|()| input.try(LengthOrPercentage::parse_non_negative).map(MaxLength::LengthOrPercentage))
|
||||
.or_else(|()| {
|
||||
match_ignore_ascii_case! { try!(input.expect_ident()),
|
||||
match_ignore_ascii_case! { &try!(input.expect_ident()),
|
||||
"none" =>
|
||||
Ok(MaxLength::None),
|
||||
_ => Err(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue