Mercurial > crates > nonstick
diff src/constants.rs @ 180:a1bb1d013567
Remove `syn` from the dependency tree by implementing our own num_enum.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Wed, 30 Jul 2025 18:22:16 -0400 |
parents | 6c75fb621b55 |
children |
line wrap: on
line diff
--- a/src/constants.rs Wed Jul 30 18:07:51 2025 -0400 +++ b/src/constants.rs Wed Jul 30 18:22:16 2025 -0400 @@ -407,10 +407,12 @@ #[cfg(feature = "link")] impl ErrorCode { + /// Returned when an invalid constant is used. #[cfg(feature = "openpam-ext")] - const BAD_CONST: ErrorCode = ErrorCode::BadConstant; + pub const BAD_CONST: ErrorCode = ErrorCode::BadConstant; + /// Returned when an invalid constant is used. #[cfg(not(feature = "openpam-ext"))] - const BAD_CONST: ErrorCode = ErrorCode::SystemError; + pub const BAD_CONST: ErrorCode = ErrorCode::SystemError; pub(crate) fn result_from(ret: i32) -> Result<()> { match ret {