From 301acdc309311f5273d956e038bd89fc524520e5 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sun, 29 Mar 2020 17:25:00 +0200 Subject: [PATCH] Make LayoutSVGSVGElementHelpers methods take self --- components/script/dom/svgsvgelement.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/svgsvgelement.rs b/components/script/dom/svgsvgelement.rs index 8c8c1dbb834..f4efe6e065b 100644 --- a/components/script/dom/svgsvgelement.rs +++ b/components/script/dom/svgsvgelement.rs @@ -49,12 +49,12 @@ impl SVGSVGElement { } pub trait LayoutSVGSVGElementHelpers { - fn data(&self) -> SVGSVGData; + fn data(self) -> SVGSVGData; } impl LayoutSVGSVGElementHelpers for LayoutDom<'_, SVGSVGElement> { #[allow(unsafe_code, non_snake_case)] - fn data(&self) -> SVGSVGData { + fn data(self) -> SVGSVGData { unsafe { let SVG = &*self.unsafe_get();