From f5087e149004e0080a61a2a31d76a5c52ee357e1 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 17 Sep 2014 01:00:59 +0530 Subject: Use #[must_root] for HTMLElements --- components/script/dom/htmllegendelement.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'components/script/dom/htmllegendelement.rs') diff --git a/components/script/dom/htmllegendelement.rs b/components/script/dom/htmllegendelement.rs index 168f94bc27e..6668dfbbff7 100644 --- a/components/script/dom/htmllegendelement.rs +++ b/components/script/dom/htmllegendelement.rs @@ -14,6 +14,7 @@ use dom::node::{Node, ElementNodeTypeId}; use servo_util::str::DOMString; #[deriving(Encodable)] +#[must_root] pub struct HTMLLegendElement { pub htmlelement: HTMLElement, } @@ -31,6 +32,7 @@ impl HTMLLegendElement { } } + #[allow(unrooted_must_root)] pub fn new(localName: DOMString, document: &JSRef) -> Temporary { let element = HTMLLegendElement::new_inherited(localName, document); Node::reflect_node(box element, document, HTMLLegendElementBinding::Wrap) -- cgit v1.2.3