From b26272ba3e9067197e0aff16ba2ce8780e0acb96 Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 19 Oct 2021 22:27:23 +0530 Subject: minor refactor --- vfs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vfs/src') 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 { let file_id = self.alloc_file_id(path); self.data.insert(file_id, contents.to_owned()); } - pub fn iter<'ρ>(&'ρ self) -> impl Iterator> { + pub fn iter(&self) -> impl Iterator { self.data.iter().map(move |(file_id, _)| VfsEntry { file_id: *file_id, file_path: self.file_path(*file_id), -- cgit v1.2.3