fix warning with PhantomData

This commit is contained in:
Chris West (Faux) 2017-07-13 15:33:30 +01:00
parent 70812eb615
commit 06a3c497e7

View File

@ -1,3 +1,4 @@
use std::marker::PhantomData;
use std::ffi;
use libc;
@ -160,7 +161,7 @@ impl<'c> PkgIterator<'c> {
pub fn versions(&self) -> VerIterator {
VerIterator {
cache: self.cache,
cache: PhantomData,
first: true,
ptr: unsafe { raw::pkg_iter_ver_iter(self.ptr) },
}
@ -184,7 +185,7 @@ where F: FnMut(&PkgIterator) -> B {
}
pub struct VerIterator<'c> {
cache: &'c Cache,
cache: PhantomData<&'c Cache>,
first: bool,
ptr: raw::PVerIterator,
}