aboutsummaryrefslogtreecommitdiff
path: root/nix-rust
diff options
context:
space:
mode:
Diffstat (limited to 'nix-rust')
-rw-r--r--nix-rust/src/error.rs1
-rw-r--r--nix-rust/src/lib.rs2
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>,
}