aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/parser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/parser.rs')
-rw-r--r--components/style/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/parser.rs b/components/style/parser.rs
index f189c7c5d93..67f35fa0976 100644
--- a/components/style/parser.rs
+++ b/components/style/parser.rs
@@ -31,7 +31,7 @@ impl<'a> ParserContext<'a> {
impl<'a> ParserContext<'a> {
pub fn parse_url(&self, input: &str) -> Url {
UrlParser::new().base_url(self.base_url).parse(input)
- .unwrap_or_else(|_| Url::parse("about:invalid").unwrap())
+ .unwrap_or_else(|_| url!("about:invalid"))
}
}