diff --git a/filedescriptor/Cargo.toml b/filedescriptor/Cargo.toml index 8c937257c..30f3a764f 100644 --- a/filedescriptor/Cargo.toml +++ b/filedescriptor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "filedescriptor" -version = "0.5.0" +version = "0.5.1" authors = ["Wez Furlong"] edition = "2018" repository = "https://github.com/wez/wzsh" diff --git a/filedescriptor/src/unix.rs b/filedescriptor/src/unix.rs index d64214ec4..63cefbbcd 100644 --- a/filedescriptor/src/unix.rs +++ b/filedescriptor/src/unix.rs @@ -244,10 +244,16 @@ impl Pipe { ) } else { let mut read = FileDescriptor { - handle: OwnedHandle { handle: fds[0] }, + handle: OwnedHandle { + handle: fds[0], + handle_type: (), + }, }; let mut write = FileDescriptor { - handle: OwnedHandle { handle: fds[1] }, + handle: OwnedHandle { + handle: fds[1], + handle_type: (), + }, }; read.handle.cloexec()?; write.handle.cloexec()?; @@ -302,10 +308,16 @@ pub fn socketpair_impl() -> Fallible<(FileDescriptor, FileDescriptor)> { ) } else { let mut read = FileDescriptor { - handle: OwnedHandle { handle: fds[0] }, + handle: OwnedHandle { + handle: fds[0], + handle_type: (), + }, }; let mut write = FileDescriptor { - handle: OwnedHandle { handle: fds[1] }, + handle: OwnedHandle { + handle: fds[1], + handle_type: (), + }, }; read.handle.cloexec()?; write.handle.cloexec()?;