diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-06-18 13:21:04 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-06-18 13:21:51 +0200 |
commit | 316cd35767ce94e33cd778a684ebd2dcedfde537 (patch) | |
tree | 3c21637169f75113d3c17a214a8693ff64770836 /components/selectors/parser.rs | |
parent | 7af5a7fd5409ab8db0274eb829136e5953e718ed (diff) | |
download | servo-316cd35767ce94e33cd778a684ebd2dcedfde537.tar.gz servo-316cd35767ce94e33cd778a684ebd2dcedfde537.zip |
Untry
Diffstat (limited to 'components/selectors/parser.rs')
-rw-r--r-- | components/selectors/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs index 783ba0cafbc..7877486d21c 100644 --- a/components/selectors/parser.rs +++ b/components/selectors/parser.rs @@ -1819,7 +1819,7 @@ pub mod tests { -> Result<PseudoClass, ParseError<'i, SelectorParseError<'i, ()>>> { match_ignore_ascii_case! { &name, - "lang" => Ok(PseudoClass::Lang(try!(parser.expect_ident_or_string()).into_owned())), + "lang" => Ok(PseudoClass::Lang(parser.expect_ident_or_string()?.into_owned())), _ => Err(SelectorParseError::Custom(()).into()) } } |