diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2015-10-20 11:05:27 -0700 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2015-10-23 14:44:19 -0700 |
commit | a9ef40c7169e5f152b6d8f225184053fe024f792 (patch) | |
tree | 3d87a097a06af2b42a5d42d41a86baca207f2ff2 /components/script/dom/nodelist.rs | |
parent | 81ecf7824cae9629be020332c836205fedaae1a2 (diff) | |
download | servo-a9ef40c7169e5f152b6d8f225184053fe024f792.tar.gz servo-a9ef40c7169e5f152b6d8f225184053fe024f792.zip |
Don't allow unrooted values in function arguments.
Diffstat (limited to 'components/script/dom/nodelist.rs')
-rw-r--r-- | components/script/dom/nodelist.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/nodelist.rs b/components/script/dom/nodelist.rs index 2ed127dd2dc..490df73bd56 100644 --- a/components/script/dom/nodelist.rs +++ b/components/script/dom/nodelist.rs @@ -27,6 +27,7 @@ pub struct NodeList { } impl NodeList { + #[allow(unrooted_must_root)] fn new_inherited(list_type: NodeListType) -> NodeList { NodeList { reflector_: Reflector::new(), @@ -34,6 +35,7 @@ impl NodeList { } } + #[allow(unrooted_must_root)] pub fn new(window: &Window, list_type: NodeListType) -> Root<NodeList> { reflect_dom_object(box NodeList::new_inherited(list_type), |