mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Shut up some rust warnings
This commit is contained in:
parent
b7fba16613
commit
d14b1c261c
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue