Fix very strange lifetime issue

This commit is contained in:
Mathijs van de Nes 2015-02-19 15:19:59 +01:00
parent 897ff2a82a
commit 02128b6e03

View file

@ -87,7 +87,7 @@ impl<T: Reader+Seek> ZipReader<T>
/// Gets a reader for a contained zipfile. /// Gets a reader for a contained zipfile.
/// ///
/// May return `ReaderUnavailable` if there is another reader borrowed. /// May return `ReaderUnavailable` if there is another reader borrowed.
pub fn read_file(&self, file: &ZipFile) -> ZipResult<Box<Reader>> pub fn read_file<'a>(&'a self, file: &ZipFile) -> ZipResult<Box<Reader+'a>>
{ {
let mut inner_reader = match self.inner.borrow_state() let mut inner_reader = match self.inner.borrow_state()
{ {