Fix very strange lifetime issue
This commit is contained in:
parent
897ff2a82a
commit
02128b6e03
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ impl<T: Reader+Seek> ZipReader<T>
|
|||
/// Gets a reader for a contained zipfile.
|
||||
///
|
||||
/// 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()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue