Fix missing DirEntryExt::ino

The DirEntryExt::ino() implementation was omitted from the first
iteration of this patch, because a dependency needed to be
configured. The fix is straightforward enough.
This commit is contained in:
Raph Levien 2016-10-20 16:23:43 -07:00
parent 76bac5d33e
commit 773a5f59e9
2 changed files with 2 additions and 2 deletions

View file

@ -312,7 +312,6 @@ pub trait DirEntryExt {
}
#[stable(feature = "dir_entry_ext", since = "1.1.0")]
#[cfg(not(target_os = "fuchsia"))]
impl DirEntryExt for fs::DirEntry {
fn ino(&self) -> u64 { self.as_inner().ino() }
}

View file

@ -312,7 +312,8 @@ impl DirEntry {
target_os = "emscripten",
target_os = "android",
target_os = "solaris",
target_os = "haiku"))]
target_os = "haiku",
target_os = "fuchsia"))]
pub fn ino(&self) -> u64 {
self.entry.d_ino as u64
}