mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove mutability requirement from fetch_async_background.
This commit is contained in:
parent
a780f6f28c
commit
f0f43ad9b0
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue