Skip to content

Commit

Permalink
Remove mutability requirement from fetch_async_background.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm committed Feb 28, 2017
1 parent a780f6f commit f0f43ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/document_loader.rs
Expand Up @@ -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();
Expand Down

0 comments on commit f0f43ad

Please sign in to comment.