diff options
author | Josh Matthews <josh@joshmatthews.net> | 2017-02-28 10:23:23 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2017-02-28 10:23:23 -0500 |
commit | f0f43ad9b0a5e7a99933bbb2192614868ef3250b (patch) | |
tree | 75d69213f87d0bf57a8ec1d08310a03c88b6f1bf /components/script/document_loader.rs | |
parent | a780f6f28cf5d0f4faa7ad84822692d9bab1d031 (diff) | |
download | servo-f0f43ad9b0a5e7a99933bbb2192614868ef3250b.tar.gz servo-f0f43ad9b0a5e7a99933bbb2192614868ef3250b.zip |
Remove mutability requirement from fetch_async_background.
Diffstat (limited to 'components/script/document_loader.rs')
-rw-r--r-- | components/script/document_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index a4ce36a2f57..611c469fa2d 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -120,7 +120,7 @@ impl DocumentLoader { } /// Initiate a new fetch that does not block the document load event. - pub fn fetch_async_background(&mut self, + pub fn fetch_async_background(&self, request: RequestInit, fetch_target: IpcSender<FetchResponseMsg>) { self.resource_threads.sender().send(CoreResourceMsg::Fetch(request, fetch_target)).unwrap(); |