Mercurial > crates > nonstick
comparison libpam-sys/libpam-sys-consts/build.rs @ 173:46e8ce5cd5d1
Miscellaneous doc and code cleanups.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Tue, 29 Jul 2025 16:52:32 -0400 |
| parents | 09dff285ff5e |
| children |
comparison
equal
deleted
inserted
replaced
| 172:6727cbe56f4a | 173:46e8ce5cd5d1 |
|---|---|
| 25 Some(INSTALLED) => Detect::Installed, | 25 Some(INSTALLED) => Detect::Installed, |
| 26 Some(val) => Detect::Specified(PamImpl::try_from(val).unwrap_or_else(|_| { | 26 Some(val) => Detect::Specified(PamImpl::try_from(val).unwrap_or_else(|_| { |
| 27 panic!( | 27 panic!( |
| 28 "unknown PAM implementation {val:?}. \ | 28 "unknown PAM implementation {val:?}. \ |
| 29 valid LIBPAMSYS_IMPLs are {:?}, \ | 29 valid LIBPAMSYS_IMPLs are {:?}, \ |
| 30 {INSTALLED:?} to use the OS default, \ | 30 {INSTALLED:?} to use the currently-installed version, \ |
| 31 or unset to detect", | 31 or unset to use the OS default", |
| 32 PamImpl::items() | 32 PamImpl::items() |
| 33 ) | 33 ) |
| 34 })), | 34 })), |
| 35 }; | 35 }; |
| 36 let pam_impl = match detection { | 36 let pam_impl = match detection { |
