about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2016-10-20 16:23:43 -0700
committerRaph Levien <raph@google.com>2016-10-22 07:08:07 -0700
commit773a5f59e936230e243fee275655c7266ed6d4f2 (patch)
tree7d2aafb804f1fb4cf0a5aac2d469e42d91b99ddd /src/libstd/sys
parent76bac5d33e09e8ae1b243c045584646431147cce (diff)
downloadrust-773a5f59e936230e243fee275655c7266ed6d4f2.tar.gz
rust-773a5f59e936230e243fee275655c7266ed6d4f2.zip
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.
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/ext/fs.rs1
-rw-r--r--src/libstd/sys/unix/fs.rs3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs
index 3ff21a07827..fcfab051588 100644
--- a/src/libstd/sys/unix/ext/fs.rs
+++ b/src/libstd/sys/unix/ext/fs.rs
@@ -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() }
 }
diff --git a/src/libstd/sys/unix/fs.rs b/src/libstd/sys/unix/fs.rs
index ee2887eb019..0b43fd2ac8c 100644
--- a/src/libstd/sys/unix/fs.rs
+++ b/src/libstd/sys/unix/fs.rs
@@ -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
     }