Mercurial > crates > nonstick
comparison testharness/src/lib.rs @ 123:98a624cacd82
Get rid of all the warnings, and arrange attributes.
| author | Paul Fisher <paul@pfish.zone> |
|---|---|
| date | Mon, 30 Jun 2025 04:26:44 -0400 |
| parents | a2676475e86b |
| children | c77846f3a979 |
comparison
equal
deleted
inserted
replaced
| 122:9e05e44050d0 | 123:98a624cacd82 |
|---|---|
| 5 use std::ffi::CStr; | 5 use std::ffi::CStr; |
| 6 | 6 |
| 7 struct TestHarness; | 7 struct TestHarness; |
| 8 | 8 |
| 9 impl<M: PamHandleModule> PamModule<M> for TestHarness { | 9 impl<M: PamHandleModule> PamModule<M> for TestHarness { |
| 10 fn authenticate(handle: &mut M, args: Vec<&CStr>, flags: Flags) -> nonstick::Result<()> { | 10 fn authenticate(_handle: &mut M, _args: Vec<&CStr>, _flags: Flags) -> nonstick::Result<()> { |
| 11 Ok(()) | 11 Ok(()) |
| 12 } | 12 } |
| 13 | 13 |
| 14 fn account_management(handle: &mut M, args: Vec<&CStr>, flags: Flags) -> nonstick::Result<()> { | 14 fn account_management(_handle: &mut M, _args: Vec<&CStr>, _flags: Flags) -> nonstick::Result<()> { |
| 15 Ok(()) | 15 Ok(()) |
| 16 } | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 pam_hooks!(TestHarness); | 19 pam_hooks!(TestHarness); |
