Skip to content

Commit 184ab8f

Browse files
authored
fix: drop redox_syscall dependency (#272)
fixes #271
1 parent fb313e0 commit 184ab8f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ features = [
3030
"Win32_Foundation",
3131
]
3232

33-
[target.'cfg(target_os = "redox")'.dependencies]
34-
redox_syscall = "0.4"
35-
3633
[dev-dependencies]
3734
doc-comment = "0.3"
3835

src/file/imp/unix.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ pub fn persist(old_path: &Path, new_path: &Path, overwrite: bool) -> io::Result<
141141
#[cfg(target_os = "redox")]
142142
pub fn persist(_old_path: &Path, _new_path: &Path, _overwrite: bool) -> io::Result<()> {
143143
// XXX implement when possible
144-
Err(io::Error::from_raw_os_error(syscall::ENOSYS))
144+
use rustix::io::Errno;
145+
Err(Errno::NOSYS.into())
145146
}
146147

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

0 commit comments

Comments
 (0)