Skip to content

Commit 9e74cce

Browse files
committed
Redox OS is part of the unix family
1 parent bc577dc commit 9e74cce

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crates/cargo-util/src/paths.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,6 @@ fn _link_or_copy(src: &Path, dst: &Path) -> Result<()> {
611611
}
612612

613613
let link_result = if src.is_dir() {
614-
#[cfg(target_os = "redox")]
615-
use std::os::redox::fs::symlink;
616614
#[cfg(unix)]
617615
use std::os::unix::fs::symlink;
618616
#[cfg(windows)]

crates/home/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub fn home_dir() -> Option<PathBuf> {
6969
#[cfg(windows)]
7070
use windows::home_dir_inner;
7171

72-
#[cfg(any(unix, target_os = "redox"))]
72+
#[cfg(unix)]
7373
fn home_dir_inner() -> Option<PathBuf> {
7474
#[allow(deprecated)]
7575
std::env::home_dir()

0 commit comments

Comments
 (0)