Skip to content

Commit

Permalink
Mark JNINativeInterface_ non_exhaustive
Browse files Browse the repository at this point in the history
It seems unlikely that applications ever destructure JNINativeInterface_
but still good to be clear that, in terms of the Rust API, this type may
be extended.
  • Loading branch information
rib committed Jun 21, 2023
1 parent 2aa4136 commit 4fba703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ pub type JNIEnv = *const JNINativeInterface_;
pub type JavaVM = *const JNIInvokeInterface_;

#[repr(C)]
#[non_exhaustive]
#[derive(Copy)]
pub struct JNINativeInterface_ {
pub reserved0: *mut c_void,
Expand Down

0 comments on commit 4fba703

Please sign in to comment.