We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4de7d1 commit cfd60fcCopy full SHA for cfd60fc
src/unix.rs
@@ -191,17 +191,17 @@ impl Client {
191
// I tested this on macOS 14 and Linux 6.5.13
192
#[cfg(target_os = "linux")]
193
if let (Ok(read), Ok(write)) = (
194
- File::open(format!("/dev/fd/{}", read)),
195
- OpenOptions::new()
+ File::open(format!("/dev/fd/{}", read.as_raw_fd())),
+ fs::OpenOptions::new()
196
.write(true)
197
- .open(format!("/dev/fd/{}", write)),
+ .open(format!("/dev/fd/{}", write.as_raw_fd())),
198
) {
199
- return Ok(Some(Client {
+ return Some(Client {
200
read,
201
write,
202
creation_arg,
203
owns_fifo: false,
204
- }));
+ });
205
}
206
if let Some(jobserver) =
207
Self::from_fifo(Path::new(&format!("/dev/fd/{}", read.as_raw_fd())))
0 commit comments