Skip to content

Commit

Permalink
Shut up some rust warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Sep 11, 2019
1 parent 1fb9bf9 commit 2beeddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions nix-rust/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion nix-rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
}

Expand Down

0 comments on commit 2beeddd

Please sign in to comment.