use correct raw type in PkgFileIterator

This commit is contained in:
Stefan Reiter 2020-07-13 17:15:24 +02:00 committed by Chris West (Faux)
parent 52213cdd72
commit f28cd3e499

View File

@ -322,14 +322,14 @@ impl<'c> VerFileView<'c> {
/// An "iterator"/pointer to a point in a file list. /// An "iterator"/pointer to a point in a file list.
pub struct PkgFileIterator<'c> { pub struct PkgFileIterator<'c> {
cache: PhantomData<&'c MutexGuard<'c, raw::CacheHolder>>, cache: PhantomData<&'c MutexGuard<'c, raw::CacheHolder>>,
ptr: raw::PVerFileIterator, ptr: raw::PPkgFileIterator,
} }
// TODO: could this be a ref to the iterator? // TODO: could this be a ref to the iterator?
// TODO: Can't get the lifetimes to work. // TODO: Can't get the lifetimes to work.
pub struct PkgFileView<'c> { pub struct PkgFileView<'c> {
cache: PhantomData<&'c MutexGuard<'c, raw::CacheHolder>>, cache: PhantomData<&'c MutexGuard<'c, raw::CacheHolder>>,
ptr: raw::PVerFileIterator, ptr: raw::PPkgFileIterator,
} }
impl<'c> RawIterator for PkgFileIterator<'c> { impl<'c> RawIterator for PkgFileIterator<'c> {