diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2015-10-15 18:47:04 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-10-16 01:20:27 +0530 |
commit | 8819f0d8b86a59acbad9b3127171fce4728b0cdd (patch) | |
tree | f66b555479dcc37f2cee6fd461d00ae8c318180e /components/script/dom/node.rs | |
parent | 7022bedba3ec9652490ce693e15674cf1ff7e36c (diff) | |
download | servo-8819f0d8b86a59acbad9b3127171fce4728b0cdd.tar.gz servo-8819f0d8b86a59acbad9b3127171fce4728b0cdd.zip |
Update script to work with lint changes
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 2f9762cd4de..d5e7f5c6e83 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -1352,10 +1352,12 @@ impl Node { Node::new_(flags, Some(doc)) } + #[allow(unrooted_must_root)] pub fn new_document_node() -> Node { Node::new_(NodeFlags::new() | IS_IN_DOC, None) } + #[allow(unrooted_must_root)] fn new_(flags: NodeFlags, doc: Option<&Document>) -> Node { Node { eventtarget: EventTarget::new_inherited(), |