fn read_contents_of_file(
    archive: &mut ZipArchive<BufReader<File>>,
    index: usize,
) -> Result<Vec<u8>, Error> {
    let mut inner_file = archive.by_index(index)?;
    let mut content = Vec::new();
    inner_file.read_to_end(&mut content)?;
    Ok(content)
}
/// Read the `index`th file from a ZIP archive.
Read the `index`th file from a ZIP archive.
Read the ` index ` th file from a ZIP archive .
fn read_contents_of_file(
    archive: &mut ZipArchive<BufReader<File>>,
    index: usize,
) -> Result<Vec<u8>, Error> {
    let mut inner_file = archive.by_index(index)?;
    let mut content = Vec::new();
    inner_file.read_to_end(&mut content)?;
    Ok(content)
}
fn read_contents_of_file ( archive : & mut ZipArchive < BufReader < File > > , index : usize , ) -> Result < Vec < u8 > , Error > { let mut inner_file = archive . by_index ( index ) ? ; let mut content = Vec :: new ( ) ; inner_file . read_to_end ( & mut content ) ? ; Ok ( content ) }
Read the `index`th file from a ZIP archive.
Read the ` index ` th file from a ZIP archive .
archive
&mut ZipArchive<BufReader<File>>
index
usize
archive
&mut ZipArchive<BufReader<File>>
index
usize