aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/selectors/parser.rs')
-rw-r--r--components/selectors/parser.rs2
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())
}
}