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:
parent
6cd4f635b6
commit
05005b1469
@ -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> {
|
||||
|
Loading…
Reference in New Issue
Block a user