Use box syntax instead of Box::new()

Closes #5417
This commit is contained in:
Brandon DeRosier 2015-03-27 19:19:36 -04:00
parent 439e3150d7
commit ccc55d658f
7 changed files with 19 additions and 17 deletions

View file

@ -294,7 +294,7 @@ impl LayoutTask {
};
// Register this thread as a memory reporter, via its own channel.
let reporter = Box::new(chan.clone());
let reporter = box chan.clone();
let reporter_name = format!("layout-reporter-{}", id.0);
mem_profiler_chan.send(mem::ProfilerMsg::RegisterReporter(reporter_name.clone(), reporter));