mirror of
https://github.com/BurntSushi/walkdir.git
synced 2025-10-03 00:14:27 +00:00
Fix compilation on Redox
This commit is contained in:
parent
e1f7637cf8
commit
40d2f56b94
@ -1108,8 +1108,6 @@ impl DirEntry {
|
|||||||
|
|
||||||
#[cfg(not(any(unix, windows)))]
|
#[cfg(not(any(unix, windows)))]
|
||||||
fn from_entry(depth: usize, ent: &fs::DirEntry) -> Result<DirEntry> {
|
fn from_entry(depth: usize, ent: &fs::DirEntry) -> Result<DirEntry> {
|
||||||
use std::os::unix::fs::DirEntryExt;
|
|
||||||
|
|
||||||
let ty = ent.file_type().map_err(|err| {
|
let ty = ent.file_type().map_err(|err| {
|
||||||
Error::from_path(depth, ent.path(), err)
|
Error::from_path(depth, ent.path(), err)
|
||||||
})?;
|
})?;
|
||||||
@ -1153,8 +1151,6 @@ impl DirEntry {
|
|||||||
|
|
||||||
#[cfg(not(any(unix, windows)))]
|
#[cfg(not(any(unix, windows)))]
|
||||||
fn from_link(depth: usize, pb: PathBuf) -> Result<DirEntry> {
|
fn from_link(depth: usize, pb: PathBuf) -> Result<DirEntry> {
|
||||||
use std::os::unix::fs::MetadataExt;
|
|
||||||
|
|
||||||
let md = fs::metadata(&pb).map_err(|err| {
|
let md = fs::metadata(&pb).map_err(|err| {
|
||||||
Error::from_path(depth, pb.clone(), err)
|
Error::from_path(depth, pb.clone(), err)
|
||||||
})?;
|
})?;
|
||||||
@ -1197,7 +1193,6 @@ impl Clone for DirEntry {
|
|||||||
ty: self.ty,
|
ty: self.ty,
|
||||||
follow_link: self.follow_link,
|
follow_link: self.follow_link,
|
||||||
depth: self.depth,
|
depth: self.depth,
|
||||||
ino: self.ino,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user