aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/file_loader.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2016-04-21 00:18:37 +0200
committerSimon Sapin <simon.sapin@exyr.org>2016-04-23 20:27:58 +0200
commit7932ab6ac2646e097a2ef2f76d6e4439fe53bdd3 (patch)
treed486c090f3287be1036f2aea0f544b65ec95d43e /components/net/file_loader.rs
parent305c283602882850be9d39c43b980d0fc0f93a3c (diff)
downloadservo-7932ab6ac2646e097a2ef2f76d6e4439fe53bdd3.tar.gz
servo-7932ab6ac2646e097a2ef2f76d6e4439fe53bdd3.zip
Upgrade to rust-url 1.0 and hyper 0.9
Diffstat (limited to 'components/net/file_loader.rs')
-rw-r--r--components/net/file_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/file_loader.rs b/components/net/file_loader.rs
index ac1c881768b..50df1c028df 100644
--- a/components/net/file_loader.rs
+++ b/components/net/file_loader.rs
@@ -67,7 +67,7 @@ pub fn factory(load_data: LoadData,
senders: LoadConsumer,
classifier: Arc<MIMEClassifier>,
cancel_listener: CancellationListener) {
- assert!(&*load_data.url.scheme == "file");
+ assert!(load_data.url.scheme() == "file");
spawn_named("file_loader".to_owned(), move || {
let file_path = match load_data.url.to_file_path() {
Ok(file_path) => file_path,