Mercurial > crates > nonstick
comparison src/libpam/module.rs @ 96:f3e260f9ddcb
Make conversation trait use immutable references.
Since sending a conversation a message doesn't really "mutate" it,
it shouldn't really be considered "mutable" for that purpose.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Mon, 23 Jun 2025 14:26:34 -0400 |
| parents | f6186e41399b |
| children | dfcd96a74ac4 |
comparison
equal
deleted
inserted
replaced
| 95:51c9d7e8261a | 96:f3e260f9ddcb |
|---|---|
| 10 /// and authorize everybody: | 10 /// and authorize everybody: |
| 11 /// | 11 /// |
| 12 /// ```no_run | 12 /// ```no_run |
| 13 /// use nonstick::{ | 13 /// use nonstick::{ |
| 14 /// pam_hooks, Flags, OwnedLibPamHandle, PamHandleModule, PamModule, Result as PamResult, | 14 /// pam_hooks, Flags, OwnedLibPamHandle, PamHandleModule, PamModule, Result as PamResult, |
| 15 /// SimpleConversation, | 15 /// ConversationAdapter, |
| 16 /// }; | 16 /// }; |
| 17 /// use std::ffi::CStr; | 17 /// use std::ffi::CStr; |
| 18 /// # fn main() {} | 18 /// # fn main() {} |
| 19 /// | 19 /// |
| 20 /// struct MyPamModule; | 20 /// struct MyPamModule; |
