Shut up some rust warnings

This commit is contained in:
Eelco Dolstra 2019-09-11 12:44:31 +02:00
parent b7fba16613
commit d14b1c261c
2 changed files with 2 additions and 1 deletions

View file

@ -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;
}

View file

@ -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>,
}