From b33c5427bc350e42503e2de1a8f832c63522b2d0 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Thu, 27 Aug 2015 01:07:34 +0530 Subject: Remove doublepointer in VirtualMethods, and from_borrowed_ref Most of the heavy lifting done by: ``` $ ls *rs | xargs gawk -i inplace '/let .*: &&.*from_borrowed_ref/{sub("&&", "\\&");sub("_borrowed_","_");} {print $0}' $ ls *rs | xargs gawk -i inplace "/impl.*VirtualMethods/{in_vm=1; sub(/<'a>/,\"\");sub(/&'a /,\"\")} /^}\$/{in_vm=0;} in_vm{\$0=gensub(/\\*self([^.])/,\"self\\\1\",\"g\"); sub(/from_borrowed_ref/,\"from_ref\")} {print}" ``` --- components/script/dom/htmlappletelement.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/htmlappletelement.rs') diff --git a/components/script/dom/htmlappletelement.rs b/components/script/dom/htmlappletelement.rs index ab9db6955dd..1a21c7ae74e 100644 --- a/components/script/dom/htmlappletelement.rs +++ b/components/script/dom/htmlappletelement.rs @@ -58,9 +58,9 @@ impl<'a> HTMLAppletElementMethods for &'a HTMLAppletElement { make_atomic_setter!(SetName, "name"); } -impl<'a> VirtualMethods for &'a HTMLAppletElement { +impl VirtualMethods for HTMLAppletElement { fn super_type<'b>(&'b self) -> Option<&'b VirtualMethods> { - Some(HTMLElementCast::from_borrowed_ref(self) as &VirtualMethods) + Some(HTMLElementCast::from_ref(self) as &VirtualMethods) } fn parse_plain_attribute(&self, name: &Atom, value: DOMString) -> AttrValue { -- cgit v1.2.3