diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-09-11 12:44:31 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-11-26 22:07:28 +0100 |
commit | d14b1c261cd3dfb4be2da943d901a394c3f23205 (patch) | |
tree | 1b9cb7389ca4786a6656a3917b071deac5500034 | |
parent | b7fba16613aed5c2b2a0b4f98e3e0d32b0cddd40 (diff) |
Shut up some rust warnings
-rw-r--r-- | nix-rust/src/error.rs | 1 | ||||
-rw-r--r-- | nix-rust/src/lib.rs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/nix-rust/src/error.rs b/nix-rust/src/error.rs index a2003be6f..519007ea0 100644 --- a/nix-rust/src/error.rs +++ b/nix-rust/src/error.rs @@ -26,5 +26,6 @@ impl From<Error> for CppException { pub struct CppException(*const libc::c_void); // == std::exception_ptr* extern "C" { + #[allow(improper_ctypes)] // YOLO fn make_error(s: &str) -> CppException; } diff --git a/nix-rust/src/lib.rs b/nix-rust/src/lib.rs index b6b0d746d..48952d8b9 100644 --- a/nix-rust/src/lib.rs +++ b/nix-rust/src/lib.rs @@ -5,7 +5,7 @@ mod tarfile; pub use error::Error; pub struct CBox<T> { - ptr: *mut libc::c_void, + pub ptr: *mut libc::c_void, phantom: std::marker::PhantomData<T>, } |