aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/css/select.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-07-21 20:23:02 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-07-21 20:23:02 +0100
commit3670ee6f1fc5066101cc5a357443494552ea37f2 (patch)
tree3fa174faace875c0f8bb83cb4f1668f46141948c /src/components/layout/css/select.rs
parentf07d999463fd80ec55cef9e673a1dc08954b6d74 (diff)
parentb84065f5749b42792c4c7b890be23e81651beab5 (diff)
downloadservo-3670ee6f1fc5066101cc5a357443494552ea37f2.tar.gz
servo-3670ee6f1fc5066101cc5a357443494552ea37f2.zip
Merge pull request #2875 from SimonSapin/rust-url
Start dogfooding rust-url
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);