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

@ -118,7 +118,7 @@ impl Profiler {
// Register the system memory reporter, which will run on the memory profiler's own thread.
// It never needs to be unregistered, because as long as the memory profiler is running the
// system memory reporter can make measurements.
let system_reporter = Box::new(SystemReporter);
let system_reporter = box SystemReporter;
mem_profiler_chan.send(ProfilerMsg::RegisterReporter("system".to_owned(), system_reporter));
mem_profiler_chan