diff options
Diffstat (limited to 'components/script/dom/filelist.rs')
-rw-r--r-- | components/script/dom/filelist.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/filelist.rs b/components/script/dom/filelist.rs index 57542b0a51d..d695ac8f43a 100644 --- a/components/script/dom/filelist.rs +++ b/components/script/dom/filelist.rs @@ -18,6 +18,7 @@ pub struct FileList { } impl FileList { + #[allow(unrooted_must_root)] fn new_inherited(files: Vec<JS<File>>) -> FileList { FileList { reflector_: Reflector::new(), @@ -25,6 +26,7 @@ impl FileList { } } + #[allow(unrooted_must_root)] pub fn new(window: &Window, files: Vec<JS<File>>) -> Root<FileList> { reflect_dom_object(box FileList::new_inherited(files), GlobalRef::Window(window), FileListBinding::Wrap) } |