aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/css/select.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/layout/css/select.rs')
-rw-r--r--src/components/layout/css/select.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/layout/css/select.rs b/src/components/layout/css/select.rs
index 9465a6ba290..230feb86e99 100644
--- a/src/components/layout/css/select.rs
+++ b/src/components/layout/css/select.rs
@@ -3,14 +3,14 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use style::{Stylesheet, Stylist, UserAgentOrigin, with_errors_silenced};
-use url;
+use url::Url;
pub fn new_stylist() -> Stylist {
let mut stylist = Stylist::new();
let ua_stylesheet = with_errors_silenced(|| Stylesheet::from_bytes(
include_bin!("user-agent.css"),
- url::from_str("chrome:///user-agent.css").unwrap(),
+ Url::parse("chrome:///user-agent.css").unwrap(),
None,
None));
stylist.add_stylesheet(ua_stylesheet, UserAgentOrigin);