aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/custom_properties.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-11-10 21:20:27 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-11-10 21:42:17 +0100
commit212b3e131142023bcc35f3b40253f3431f742803 (patch)
treec381ef32b7d99ba240363da2ceb04d18775cd35e /components/style/custom_properties.rs
parent155caba59512cf284d6c2b1c118ed3afeb8fdf49 (diff)
downloadservo-212b3e131142023bcc35f3b40253f3431f742803.tar.gz
servo-212b3e131142023bcc35f3b40253f3431f742803.zip
style: Revert try -> r#try change.
Since we're in an inconsistent state because mako files weren't updated, and it's really really ugly.
Diffstat (limited to 'components/style/custom_properties.rs')
-rw-r--r--components/style/custom_properties.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/custom_properties.rs b/components/style/custom_properties.rs
index 5bd97241b67..31c3dc207f5 100644
--- a/components/style/custom_properties.rs
+++ b/components/style/custom_properties.rs
@@ -553,7 +553,7 @@ fn parse_var_function<'i, 't>(
let name = parse_name(&name).map_err(|()| {
input.new_custom_error(SelectorParseErrorKind::UnexpectedIdent(name.clone()))
})?;
- if input.r#try(|input| input.expect_comma()).is_ok() {
+ if input.try(|input| input.expect_comma()).is_ok() {
parse_fallback(input)?;
}
if let Some(refs) = references {
@@ -569,7 +569,7 @@ fn parse_env_function<'i, 't>(
// TODO(emilio): This should be <custom-ident> per spec, but no other
// browser does that, see https://github.com/w3c/csswg-drafts/issues/3262.
input.expect_ident()?;
- if input.r#try(|input| input.expect_comma()).is_ok() {
+ if input.try(|input| input.expect_comma()).is_ok() {
parse_fallback(input)?;
}
if let Some(references) = references {