From f0f43ad9b0a5e7a99933bbb2192614868ef3250b Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Tue, 28 Feb 2017 10:23:23 -0500 Subject: [PATCH] Remove mutability requirement from fetch_async_background. --- components/script/document_loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index a4ce36a2f575..611c469fa2dd 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) { self.resource_threads.sender().send(CoreResourceMsg::Fetch(request, fetch_target)).unwrap();