Skip to content

Commit ef21c1c

Browse files
committed
Removed non-working fallback for Home dir
1 parent 30feb6b commit ef21c1c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • library/std/src/sys/unix

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,8 @@ pub fn home_dir() -> Option<PathBuf> {
584584
target_os = "emscripten",
585585
target_os = "redox",
586586
target_os = "vxworks",
587-
target_os = "espidf"
587+
target_os = "espidf",
588+
target_os = "horizon"
588589
))]
589590
unsafe fn fallback() -> Option<OsString> {
590591
None
@@ -595,7 +596,8 @@ pub fn home_dir() -> Option<PathBuf> {
595596
target_os = "emscripten",
596597
target_os = "redox",
597598
target_os = "vxworks",
598-
target_os = "espidf"
599+
target_os = "espidf",
600+
target_os = "horizon"
599601
)))]
600602
unsafe fn fallback() -> Option<OsString> {
601603
let amt = match libc::sysconf(libc::_SC_GETPW_R_SIZE_MAX) {

0 commit comments

Comments
 (0)