comparison src/lib.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 a12706e42c9d
children 56b559b7ecea
comparison
equal deleted inserted replaced
140:add7228adb2f 141:a508a69c068a
38 mod libpam; 38 mod libpam;
39 pub mod logging; 39 pub mod logging;
40 40
41 #[cfg(feature = "link")] 41 #[cfg(feature = "link")]
42 #[doc(inline)] 42 #[doc(inline)]
43 pub use crate::libpam::{LibPamHandle, OwnedLibPamHandle}; 43 pub use crate::libpam::{OwnedLibPamHandle, RawPamHandle};
44 #[doc(inline)] 44 #[doc(inline)]
45 pub use crate::{ 45 pub use crate::{
46 constants::{ErrorCode, Flags, Result}, 46 constants::{ErrorCode, Flags, Result},
47 conv::{BinaryData, Conversation, ConversationAdapter}, 47 conv::{BinaryData, Conversation, ConversationAdapter},
48 environ::{EnvironMap, EnvironMapMut}, 48 environ::{EnvironMap, EnvironMapMut},