diff options
author | Akshay <[email protected]> | 2021-10-19 17:57:23 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-10-19 17:57:23 +0100 |
commit | b26272ba3e9067197e0aff16ba2ce8780e0acb96 (patch) | |
tree | dd97ddf664bd2255e9617bbdf41364134003c8cb /vfs/src | |
parent | ea2e23496672257dd1728ce36259249c3efb8aec (diff) |
minor refactor
Diffstat (limited to 'vfs/src')
-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), |