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:
parent
76bac5d33e
commit
773a5f59e9
2 changed files with 2 additions and 2 deletions
|
|
@ -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() }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue