mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Resolves strange borrow/type checking issues from new thread naming
This commit is contained in:
parent
f257b5fcef
commit
4b6f07cbe6
1 changed files with 4 additions and 2 deletions
|
@ -41,8 +41,10 @@ pub fn factory(resource_mgr_chan: IpcSender<ControlMsg>,
|
|||
devtools_chan: Option<Sender<DevtoolsControlMsg>>)
|
||||
-> Box<FnBox(LoadData, LoadConsumer, Arc<MIMEClassifier>) + Send> {
|
||||
box move |load_data, senders, classifier| {
|
||||
spawn_named(format!("http_loader for {}", load_data.url.serialize()),
|
||||
move || load_for_consumer(load_data, senders, classifier, resource_mgr_chan, devtools_chan))
|
||||
let l: LoadData = (load_data as LoadData).clone();
|
||||
let name = format!("http_loader for {}", l.url.serialize());
|
||||
spawn_named(name,
|
||||
move || load_for_consumer(l, senders, classifier, resource_mgr_chan, devtools_chan))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue