cleanup
Error::from is already a function taking 1 parameter, there's no need to wrap it with `|e| Error::from(e)`. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
@ -86,7 +86,7 @@ impl Iterator for ReadDir {
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
self.iter.next().map(|res| {
|
||||
res.map(|entry| ReadDirEntry { entry, parent_fd: self.dir_fd })
|
||||
.map_err(|e| Error::from(e))
|
||||
.map_err(Error::from)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user