From d14b1c261cd3dfb4be2da943d901a394c3f23205 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Sep 2019 12:44:31 +0200 Subject: [PATCH] Shut up some rust warnings --- nix-rust/src/error.rs | 1 + nix-rust/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 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 { - ptr: *mut libc::c_void, + pub ptr: *mut libc::c_void, phantom: std::marker::PhantomData, }