comparison src/libpam/mod.rs @ 141:a508a69c068a

Remove a lot of Results from functions. Many functions are documented to only return failing Results when given improper inputs or when there is a memory allocation failure (which can be verified by looking at the source). In cases where we know our input is correct, we don't need to check for memory allocation errors for the same reason that Rust doesn't do so when you, e.g., create a new Vec.
author Paul Fisher <paul@pfish.zone>
date Sat, 05 Jul 2025 17:16:56 -0400
parents 80c07e5ab22f
children 56b559b7ecea
comparison
equal deleted inserted replaced
140:add7228adb2f 141:a508a69c068a
13 mod memory; 13 mod memory;
14 mod module; 14 mod module;
15 mod question; 15 mod question;
16 16
17 #[doc(inline)] 17 #[doc(inline)]
18 pub use handle::{LibPamHandle, OwnedLibPamHandle}; 18 pub use handle::{OwnedLibPamHandle, RawPamHandle};