summaryrefslogtreecommitdiffstats
path: root/crates/runner/src/util/fs.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-02 22:40:59 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-02 22:40:59 +0200
commit89e193c1ab8184f74b2b40f3822e544d5e0d5163 (patch)
treedae862e629bd499c3d7f344ebeab938781e913a6 /crates/runner/src/util/fs.rs
parent1e8875b6437f3b3a1505e25dde8e352d232b09fa (diff)
downloadrebel-89e193c1ab8184f74b2b40f3822e544d5e0d5163.tar
rebel-89e193c1ab8184f74b2b40f3822e544d5e0d5163.zip
Update dependencies
Diffstat (limited to 'crates/runner/src/util/fs.rs')
-rw-r--r--crates/runner/src/util/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/runner/src/util/fs.rs b/crates/runner/src/util/fs.rs
index 9e16648..5efd159 100644
--- a/crates/runner/src/util/fs.rs
+++ b/crates/runner/src/util/fs.rs
@@ -123,5 +123,5 @@ pub fn mount<P1: AsRef<Path>, P2: AsRef<Path>>(
pub fn pipe() -> Result<(File, File)> {
unistd::pipe2(OFlag::O_CLOEXEC)
.context("pipe2()")
- .map(|(piper, pipew)| unsafe { (File::from_raw_fd(piper), File::from_raw_fd(pipew)) })
+ .map(|(piper, pipew)| (File::from(piper), File::from(pipew)))
}