5
0
mirror of git://git.proxmox.com/git/pxar.git synced 2024-12-22 21:33:50 +03:00

let FileEntry deref to Entry

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2020-02-18 14:19:23 +01:00
parent 6cd4f635b6
commit 05005b1469

View File

@ -145,6 +145,14 @@ impl<'a> FileEntry<'a> {
}
}
impl<'a> std::ops::Deref for FileEntry<'a> {
type Target = Entry;
fn deref(&self) -> &Self::Target {
self.entry()
}
}
/// An iterator over the contents of a `Directory`.
#[repr(transparent)]
pub struct ReadDir<'a> {