aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/filelist.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/filelist.rs')
-rw-r--r--components/script/dom/filelist.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/filelist.rs b/components/script/dom/filelist.rs
index 6da842ea076..57542b0a51d 100644
--- a/components/script/dom/filelist.rs
+++ b/components/script/dom/filelist.rs
@@ -30,19 +30,19 @@ impl FileList {
}
}
-impl<'a> FileListMethods for &'a FileList {
+impl FileListMethods for FileList {
// https://w3c.github.io/FileAPI/#dfn-length
- fn Length(self) -> u32 {
+ fn Length(&self) -> u32 {
self.list.len() as u32
}
// https://w3c.github.io/FileAPI/#dfn-item
- fn Item(self, index: u32) -> Option<Root<File>> {
+ fn Item(&self, index: u32) -> Option<Root<File>> {
Some(self.list[index as usize].root())
}
// check-tidy: no specs after this line
- fn IndexedGetter(self, index: u32, found: &mut bool) -> Option<Root<File>> {
+ fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<Root<File>> {
let item = self.Item(index);
*found = item.is_some();
item