Mercurial > crates > nonstick
diff src/conv.rs @ 7:9380392b9a60
Changes type marker parameter type from Option<T> to PhantomData<T>
author | Jesse Hallett <jesse@galois.com> |
---|---|
date | Fri, 03 Apr 2015 23:33:20 -0700 |
parents | 2ec97116d72c |
children | a83c56216e21 |
line wrap: on
line diff
--- a/src/conv.rs Fri Apr 03 23:16:44 2015 -0700 +++ b/src/conv.rs Fri Apr 03 23:33:20 2015 -0700 @@ -1,6 +1,7 @@ use libc::{c_char, c_int}; use std::{ptr}; use std::ffi::{CStr, CString}; +use std::marker::{PhantomData}; use constants; use constants::*; @@ -76,5 +77,5 @@ } impl PamItem for PamConv { - fn item_type(_: Option<Self>) -> PamItemType { PAM_CONV } + fn item_type(_: PhantomData<Self>) -> PamItemType { PAM_CONV } }