diff --git a/src/example_ffi.rs b/src/example_ffi.rs index ce0e197..e678ba8 100644 --- a/src/example_ffi.rs +++ b/src/example_ffi.rs @@ -21,7 +21,7 @@ use winapi::{ um::minwinbase::{LPOVERLAPPED, LPSECURITY_ATTRIBUTES}, }; -/// Declare a few FFI functions ourselves, to show off the FFI ergonomics. +// Declare a few FFI functions ourselves, to show off the FFI ergonomics. #[cfg(all(rustc_attrs, any(unix, target_os = "wasi")))] extern "C" { pub fn open(pathname: *const c_char, flags: c_int, ...) -> Option; diff --git a/src/types.rs b/src/types.rs index 4e49451..e61ae3f 100644 --- a/src/types.rs +++ b/src/types.rs @@ -206,6 +206,7 @@ impl OwnedFd { /// /// [here]: https://devblogs.microsoft.com/oldnewthing/20040302-00/?p=40443 #[cfg(windows)] +#[repr(transparent)] pub struct OwnedHandle { handle: RawHandle, }