Skip to content

Instantly share code, notes, and snippets.

@aep
Created April 9, 2020 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aep/4a3288037f7ce186d88bb58cb70e9c8c to your computer and use it in GitHub Desktop.
Save aep/4a3288037f7ce186d88bb58cb70e9c8c to your computer and use it in GitHub Desktop.
warning: `extern` block uses type `fn(*mut u8, *mut u8, usize, *mut u8, *mut usize) -> zz::io::Result`, which is not FFI-safe
--> src/../target/release/rs/io_unix.rs:21:48
|
21 | pub fn unix( Zfd: std::os::raw::c_int) -> super::io::Io;
| ^^^^^^^^^^^^^ not FFI-safe
|
= help: consider using an `extern fn(...) -> ...` function pointer instead
= note: this function pointer has Rust-specific calling convention
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment