Skip to content

Commit

Permalink
fix: drop redox_syscall dependency (#272)
Browse files Browse the repository at this point in the history
fixes #271
  • Loading branch information
Stebalien authored Jan 31, 2024
1 parent fb313e0 commit 184ab8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ features = [
"Win32_Foundation",
]

[target.'cfg(target_os = "redox")'.dependencies]
redox_syscall = "0.4"

[dev-dependencies]
doc-comment = "0.3"

Expand Down
3 changes: 2 additions & 1 deletion src/file/imp/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<
#[cfg(target_os = "redox")]
pub fn persist(_old_path: &Path, _new_path: &Path, _overwrite: bool) -> io::Result<()> {
// XXX implement when possible
Err(io::Error::from_raw_os_error(syscall::ENOSYS))
use rustix::io::Errno;
Err(Errno::NOSYS.into())
}

pub fn keep(_: &Path) -> io::Result<()> {
Expand Down

0 comments on commit 184ab8f

Please sign in to comment.