diff src/constants.rs @ 77:351bdc13005e

Update the libpam module to work with the new structure.
author Paul Fisher <paul@pfish.zone>
date Sun, 08 Jun 2025 01:03:46 -0400
parents 58f9d2a4df38
children 5aa1a010f1e8
line wrap: on
line diff
--- a/src/constants.rs	Sat Jun 07 18:55:27 2025 -0400
+++ b/src/constants.rs	Sun Jun 08 01:03:46 2025 -0400
@@ -174,9 +174,8 @@
 }
 
 /// Error returned when attempting to coerce an invalid C integer into an enum.
-#[derive(thiserror::Error)]
+#[derive(Debug, PartialEq, thiserror::Error)]
 #[error("{0} is not a valid {type}", type = any::type_name::<T>())]
-#[derive(Debug, PartialEq)]
 pub struct InvalidEnum<T>(c_int, PhantomData<T>);
 
 impl<T> From<InvalidEnum<T>> for c_int {