mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update cssparser to 0.18
https://github.com/servo/rust-cssparser/pull/171
This commit is contained in:
parent
30d6d6024b
commit
eb98ae6e04
64 changed files with 541 additions and 512 deletions
|
@ -211,10 +211,10 @@ impl MediaQuery {
|
|||
None
|
||||
};
|
||||
|
||||
let media_type = match input.try(|input| input.expect_ident()) {
|
||||
let media_type = match input.try(|i| i.expect_ident_cloned()) {
|
||||
Ok(ident) => {
|
||||
let result: Result<_, ParseError> = MediaQueryType::parse(&*ident)
|
||||
.map_err(|()| SelectorParseError::UnexpectedIdent(ident).into());
|
||||
.map_err(|()| SelectorParseError::UnexpectedIdent(ident.clone()).into());
|
||||
result?
|
||||
}
|
||||
Err(_) => {
|
||||
|
@ -263,7 +263,7 @@ pub fn parse_media_query_list(context: &ParserContext, input: &mut Parser) -> Me
|
|||
}
|
||||
|
||||
match input.next() {
|
||||
Ok(Token::Comma) => {},
|
||||
Ok(&Token::Comma) => {},
|
||||
Ok(_) => unreachable!(),
|
||||
Err(_) => break,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue