Lints and suggestions for the Nix programming language

lint(vfs): don't hide elided lifetime

Ref:
```
Compiling vfs v0.0.0 (/build/source/vfs)
error: hiding a lifetime that's elided elsewhere is confusing
--> vfs/src/lib.rs:73:17
|
73 | pub fn iter(&self) -> impl Iterator<Item = VfsEntry> {
| ^^^^^ -------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
= note: `-D mismatched-lifetime-syntaxes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(mismatched_lifetime_syntaxes)]`
help: use `'_` for type paths
|
73 | pub fn iter(&self) -> impl Iterator<Item = VfsEntry<'_>> {
| ++++

error: could not compile `vfs` (lib) due to 1 previous error
```

authored by

x10an14 and committed by mightyiam.tngl.sh 78223ab3 6e1d8bc1

+2 -2
+2 -2
vfs/src/lib.rs
··· 70 70 let file_id = self.alloc_file_id(path); 71 71 self.data.insert(file_id, contents.to_owned()); 72 72 } 73 - pub fn iter(&self) -> impl Iterator<Item = VfsEntry> { 73 + pub fn iter(&self) -> impl Iterator<Item = VfsEntry<'_>> { 74 74 self.data.keys().map(move |file_id| VfsEntry { 75 75 file_id: *file_id, 76 76 file_path: self.file_path(*file_id), ··· 78 78 }) 79 79 } 80 80 #[must_use] 81 - pub fn par_iter(&self) -> impl ParallelIterator<Item = VfsEntry> { 81 + pub fn par_iter(&self) -> impl ParallelIterator<Item = VfsEntry<'_>> { 82 82 self.data.par_iter().map(move |(file_id, _)| VfsEntry { 83 83 file_id: *file_id, 84 84 file_path: self.file_path(*file_id),