mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove usage of unstable box syntax, except in the script crate
… because there’s a lot of it, and script still uses any other unstable features anyway.
This commit is contained in:
parent
796a8dc618
commit
aa5761a5fb
40 changed files with 195 additions and 195 deletions
|
@ -52,11 +52,11 @@ impl ProfilerChan {
|
|||
{
|
||||
// Register the memory reporter.
|
||||
let (reporter_sender, reporter_receiver) = ipc::channel().unwrap();
|
||||
ROUTER.add_route(reporter_receiver.to_opaque(), box move |message| {
|
||||
ROUTER.add_route(reporter_receiver.to_opaque(), Box::new(move |message| {
|
||||
// Just injects an appropriate event into the paint thread's queue.
|
||||
let request: ReporterRequest = message.to().unwrap();
|
||||
channel_for_reporter.send(msg(request.reports_channel));
|
||||
});
|
||||
}));
|
||||
self.send(ProfilerMsg::RegisterReporter(reporter_name.clone(),
|
||||
Reporter(reporter_sender)));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue