diff options
Diffstat (limited to 'components/script/dom/svgsvgelement.rs')
-rw-r--r-- | components/script/dom/svgsvgelement.rs | 4 |
1 files 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(); |