# HG changeset patch # User Marc Brinkmann # Date 1488107763 -3600 # Node ID cc39d168aeb8c2f060dfe3e663e33ce5cfb54d1e # Parent 30831c70e5c0ee065b43aed09d897368f9ee1efd Bring generic-naming in line with rest of lib in `set_item_str`. diff -r 30831c70e5c0 -r cc39d168aeb8 src/module.rs --- a/src/module.rs Sun Feb 26 12:12:36 2017 +0100 +++ b/src/module.rs Sun Feb 26 12:16:03 2017 +0100 @@ -139,12 +139,12 @@ /// /// See `pam_set_item` in /// http://www.linux-pam.org/Linux-PAM-html/mwg-expected-by-module-item.html -pub fn set_item_str<'a, P: PamItem>(pamh: &'a mut PamHandleT, item: &str) -> PamResult<()> { +pub fn set_item_str<'a, T: PamItem>(pamh: &'a mut PamHandleT, item: &str) -> PamResult<()> { let c_item = CString::new(item).unwrap().as_ptr(); let res = unsafe { pam_set_item(pamh, - P::item_type(), + T::item_type(), // unwrapping is okay here, as c_item will not be a NULL // pointer