Skip to content

Commit 1c63ec4

Browse files
hkratzpietroalbini
authored andcommitted
Better fix for Fuchsia
1 parent 68976d1 commit 1c63ec4

File tree

1 file changed

+2
-9
lines changed
  • library/std/src/sys/unix

1 file changed

+2
-9
lines changed

library/std/src/sys/unix/fs.rs

+2-9
Original file line numberDiff line numberDiff line change
@@ -1628,20 +1628,13 @@ mod remove_dir_impl {
16281628
target_os = "solaris",
16291629
target_os = "illumos",
16301630
target_os = "haiku",
1631-
target_os = "vxworks"
1631+
target_os = "vxworks",
1632+
target_os = "fuchsia"
16321633
))]
16331634
fn is_dir(_ent: &DirEntry) -> Option<bool> {
16341635
None
16351636
}
16361637

1637-
#[cfg(target_os = "fuchsia")]
1638-
fn is_dir(ent: &DirEntry) -> Option<bool> {
1639-
match ent.entry.d_type {
1640-
libc::DT_DIR => Some(true),
1641-
_ => Some(false),
1642-
}
1643-
}
1644-
16451638
#[cfg(not(any(
16461639
target_os = "solaris",
16471640
target_os = "illumos",

0 commit comments

Comments
 (0)