aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/file_loader.rs
diff options
context:
space:
mode:
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,