Skip to content

Commit b8d9379

Browse files
committed
freebsd15: Mark kinfo_proc as non-exhaustive
struct kinfo_proc may be extended again in the future. Add #[non_exhaustive] to let the compiler and other tooling know.
1 parent ebb6c4f commit b8d9379

File tree

1 file changed

+1
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd/freebsd15

1 file changed

+1
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/freebsd15/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ s! {
5050
_priv: [c_ulong; 8],
5151
}
5252

53+
#[non_exhaustive]
5354
pub struct kinfo_proc {
5455
/// Size of this structure.
5556
pub ki_structsize: c_int,

0 commit comments

Comments
 (0)