Skip to content

Commit 773a5f5

Browse files
committed
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.
1 parent 76bac5d commit 773a5f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libstd/sys/unix/ext/fs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ pub trait DirEntryExt {
312312
}
313313

314314
#[stable(feature = "dir_entry_ext", since = "1.1.0")]
315-
#[cfg(not(target_os = "fuchsia"))]
316315
impl DirEntryExt for fs::DirEntry {
317316
fn ino(&self) -> u64 { self.as_inner().ino() }
318317
}

src/libstd/sys/unix/fs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,8 @@ impl DirEntry {
312312
target_os = "emscripten",
313313
target_os = "android",
314314
target_os = "solaris",
315-
target_os = "haiku"))]
315+
target_os = "haiku",
316+
target_os = "fuchsia"))]
316317
pub fn ino(&self) -> u64 {
317318
self.entry.d_ino as u64
318319
}

0 commit comments

Comments
 (0)