Mercurial > crates > nonstick
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 6:2ec97116d72c | 7:9380392b9a60 |
|---|---|
| 1 use libc::{c_char, c_int}; | 1 use libc::{c_char, c_int}; |
| 2 use std::{ptr}; | 2 use std::{ptr}; |
| 3 use std::ffi::{CStr, CString}; | 3 use std::ffi::{CStr, CString}; |
| 4 use std::marker::{PhantomData}; | |
| 4 | 5 |
| 5 use constants; | 6 use constants; |
| 6 use constants::*; | 7 use constants::*; |
| 7 use module::{PamItem, PamResult}; | 8 use module::{PamItem, PamResult}; |
| 8 | 9 |
| 74 } | 75 } |
| 75 } | 76 } |
| 76 } | 77 } |
| 77 | 78 |
| 78 impl PamItem for PamConv { | 79 impl PamItem for PamConv { |
| 79 fn item_type(_: Option<Self>) -> PamItemType { PAM_CONV } | 80 fn item_type(_: PhantomData<Self>) -> PamItemType { PAM_CONV } |
| 80 } | 81 } |
