Skip to content

Commit 439464c

Browse files
committed
std::fs::DirEntry.metadata(): prefer use of lstat() on Emscripten
Align it with musl, which also prefers using lstat() here.
1 parent 08644b7 commit 439464c

File tree

1 file changed

+0
-4
lines changed
  • library/std/src/sys/pal/unix

1 file changed

+0
-4
lines changed

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

-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ mod tests;
88
use libc::c_char;
99
#[cfg(any(
1010
all(target_os = "linux", not(target_env = "musl")),
11-
target_os = "emscripten",
1211
target_os = "android",
1312
target_os = "hurd"
1413
))]
1514
use libc::dirfd;
1615
#[cfg(any(
1716
all(target_os = "linux", not(target_env = "musl")),
18-
target_os = "emscripten",
1917
target_os = "hurd"
2018
))]
2119
use libc::fstatat64;
@@ -893,7 +891,6 @@ impl DirEntry {
893891
#[cfg(all(
894892
any(
895893
all(target_os = "linux", not(target_env = "musl")),
896-
target_os = "emscripten",
897894
target_os = "android",
898895
target_os = "hurd"
899896
),
@@ -922,7 +919,6 @@ impl DirEntry {
922919
#[cfg(any(
923920
not(any(
924921
all(target_os = "linux", not(target_env = "musl")),
925-
target_os = "emscripten",
926922
target_os = "android",
927923
target_os = "hurd",
928924
)),

0 commit comments

Comments
 (0)