From 2c8d51a37c84fb5de531d00c45de9c0020930b11 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Fri, 19 Sep 2014 01:32:30 -0700 Subject: More progress in the &JSRef -> JSRef conversion Change all of the Methods traits to take `self` instead of `&self`. --- components/script/dom/performance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/performance.rs') diff --git a/components/script/dom/performance.rs b/components/script/dom/performance.rs index 7aafb604a9a..1916e86db4c 100644 --- a/components/script/dom/performance.rs +++ b/components/script/dom/performance.rs @@ -36,11 +36,11 @@ impl Performance { } impl<'a> PerformanceMethods for JSRef<'a, Performance> { - fn Timing(&self) -> Temporary { + fn Timing(self) -> Temporary { Temporary::new(self.timing.clone()) } - fn Now(&self) -> DOMHighResTimeStamp { + fn Now(self) -> DOMHighResTimeStamp { let navStart = self.timing.root().NavigationStartPrecise() as f64; (time::precise_time_s() - navStart) as DOMHighResTimeStamp } -- cgit v1.2.3