diff options
Diffstat (limited to 'vfs')
-rw-r--r-- | vfs/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vfs/src/lib.rs b/vfs/src/lib.rs index f620ab9..98bd1c3 100644 --- a/vfs/src/lib.rs +++ b/vfs/src/lib.rs | |||
@@ -58,7 +58,7 @@ impl ReadOnlyVfs { | |||
58 | let file_id = self.alloc_file_id(path); | 58 | let file_id = self.alloc_file_id(path); |
59 | self.data.insert(file_id, contents.to_owned()); | 59 | self.data.insert(file_id, contents.to_owned()); |
60 | } | 60 | } |
61 | pub fn iter<'ρ>(&'ρ self) -> impl Iterator<Item = VfsEntry<'ρ>> { | 61 | pub fn iter(&self) -> impl Iterator<Item = VfsEntry> { |
62 | self.data.iter().map(move |(file_id, _)| VfsEntry { | 62 | self.data.iter().map(move |(file_id, _)| VfsEntry { |
63 | file_id: *file_id, | 63 | file_id: *file_id, |
64 | file_path: self.file_path(*file_id), | 64 | file_path: self.file_path(*file_id), |