aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceentry.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/performanceentry.rs')
-rw-r--r--components/script/dom/performanceentry.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/performanceentry.rs b/components/script/dom/performanceentry.rs
index 01b8eb6ee95..964a808143b 100644
--- a/components/script/dom/performanceentry.rs
+++ b/components/script/dom/performanceentry.rs
@@ -41,7 +41,7 @@ impl PerformanceEntry {
start_time: f64,
duration: f64) -> DomRoot<PerformanceEntry> {
let entry = PerformanceEntry::new_inherited(name, entry_type, start_time, duration);
- reflect_dom_object(box entry, global, PerformanceEntryBinding::Wrap)
+ reflect_dom_object(Box::new(entry), global, PerformanceEntryBinding::Wrap)
}
pub fn entry_type(&self) -> &DOMString {