summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/io/fd/owned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/io/fd/owned.rs')
-rw-r--r--vendor/rustix/src/io/fd/owned.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/rustix/src/io/fd/owned.rs b/vendor/rustix/src/io/fd/owned.rs
index d99b6a0f9..c2972b073 100644
--- a/vendor/rustix/src/io/fd/owned.rs
+++ b/vendor/rustix/src/io/fd/owned.rs
@@ -92,14 +92,14 @@ impl OwnedFd {
// CLOEXEC flag, and currently that's done via F_DUPFD_CLOEXEC. This
// is a POSIX flag that was added to Linux in 2.6.24.
#[cfg(not(target_os = "espidf"))]
- let fd = crate::fs::fcntl_dupfd_cloexec(self, 0)?;
+ let fd = crate::io::fcntl_dupfd_cloexec(self, 0)?;
// For ESP-IDF, F_DUPFD is used instead, because the CLOEXEC semantics
// will never be supported, as this is a bare metal framework with
// no capabilities for multi-process execution. While F_DUPFD is also
// not supported yet, it might be (currently it returns ENOSYS).
#[cfg(target_os = "espidf")]
- let fd = crate::fs::fcntl_dupfd(self)?;
+ let fd = crate::io::fcntl_dupfd(self)?;
Ok(fd.into())
}