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/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/file.rs') diff --git a/components/script/dom/file.rs b/components/script/dom/file.rs index 151db9132b0..52ea7feff74 100644 --- a/components/script/dom/file.rs +++ b/components/script/dom/file.rs @@ -36,8 +36,8 @@ impl File { } } -impl FileMethods for File { - fn Name(&self) -> DOMString { +impl<'a> FileMethods for JSRef<'a, File> { + fn Name(self) -> DOMString { self.name.clone() } } -- cgit v1.2.3