diff libpam-sys/src/helpers.rs @ 110:2346fd501b7a

Add tests for constants and do other macro niceties. - Adds tests for all the constants. Pretty sweet. - Moves documentation for cfg-pam-impl macro to `libpam-sys`. - Renames `Illumos` to `Sun`. - other stuff
author Paul Fisher <paul@pfish.zone>
date Sun, 29 Jun 2025 02:15:46 -0400
parents bb465393621f
children
line wrap: on
line diff
--- a/libpam-sys/src/helpers.rs	Sat Jun 28 02:49:35 2025 -0400
+++ b/libpam-sys/src/helpers.rs	Sun Jun 29 02:15:46 2025 -0400
@@ -1,10 +1,10 @@
 //! This module contains a few non-required helpers to deal with some of the
 //! more annoying memory management in the PAM API.
 use crate::structs::BinaryPayload;
+use std::error::Error;
 use std::fmt;
+use std::mem::ManuallyDrop;
 use std::ptr::NonNull;
-use std::error::Error;
-use std::mem::ManuallyDrop;
 
 /// Error returned when attempting to allocate a buffer that is too big.
 ///