diff options
author | Andrew Gallant <jamslam@gmail.com> | 2018-06-13 19:13:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 19:13:02 +0300 |
commit | 4b21b55f2180bdd27d99a8999ae390a0568658da (patch) | |
tree | 58ddf584aeeb6c5b6970f145f593992d633546e4 | |
parent | e1f7637cf83fe0c8ba9871595ccede4b045640ce (diff) | |
parent | 40d2f56b94b8dcf980d1ba31ae334d99ab951d40 (diff) |
redox: remove uses of Unix-only things
The code for `cfg(not(any(unix, windows)))` is untested and contained a few
errors that this commit cleans up.
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1108,8 +1108,6 @@ impl DirEntry { #[cfg(not(any(unix, windows)))] fn from_entry(depth: usize, ent: &fs::DirEntry) -> Result<DirEntry> { - use std::os::unix::fs::DirEntryExt; - let ty = ent.file_type().map_err(|err| { Error::from_path(depth, ent.path(), err) })?; @@ -1153,8 +1151,6 @@ impl DirEntry { #[cfg(not(any(unix, windows)))] fn from_link(depth: usize, pb: PathBuf) -> Result<DirEntry> { - use std::os::unix::fs::MetadataExt; - let md = fs::metadata(&pb).map_err(|err| { Error::from_path(depth, pb.clone(), err) })?; @@ -1197,7 +1193,6 @@ impl Clone for DirEntry { ty: self.ty, follow_link: self.follow_link, depth: self.depth, - ino: self.ino, } } } |