Mercurial > crates > nonstick
diff src/conv.rs @ 14:51b097c12d3c
make PamResultCode an enum
author | Anthony Nowell <anthony@algorithmia.com> |
---|---|
date | Sat, 23 Sep 2017 14:30:18 -0600 |
parents | 30831c70e5c0 |
children |
line wrap: on
line diff
--- a/src/conv.rs Sun Feb 26 12:16:03 2017 +0100 +++ b/src/conv.rs Sat Sep 23 14:30:18 2017 -0600 @@ -2,7 +2,7 @@ use std::ptr; use std::ffi::{CStr, CString}; -use constants; +use constants::PamResultCode; use constants::*; use module::{PamItem, PamResult}; @@ -61,7 +61,7 @@ let ret = (self.conv)(1, &&msg, &mut resp_ptr, self.appdata_ptr); - if constants::PAM_SUCCESS == ret { + if PamResultCode::PAM_SUCCESS == ret { if resp_ptr.is_null() { Ok(None) } else {