remove debug logs
This commit is contained in:
parent
2c954d8d74
commit
0990b8a9b2
2 changed files with 1 additions and 8 deletions
|
|
@ -49,13 +49,6 @@ impl Serializable for DataDescriptor32 {
|
||||||
fn deserialize(input: &mut dyn ReadSeek) -> Result<Self> {
|
fn deserialize(input: &mut dyn ReadSeek) -> Result<Self> {
|
||||||
let pos = input.stream_position().unwrap(); //TODO
|
let pos = input.stream_position().unwrap(); //TODO
|
||||||
let signature = Signature::deserialize(input)?;
|
let signature = Signature::deserialize(input)?;
|
||||||
println!(
|
|
||||||
"Found: 0x{:x}, expected 0x{:x}, eq: {}",
|
|
||||||
signature.0,
|
|
||||||
Self::SIGNATURE.0,
|
|
||||||
signature == Self::SIGNATURE
|
|
||||||
);
|
|
||||||
|
|
||||||
let use_signature = if signature != Self::SIGNATURE {
|
let use_signature = if signature != Self::SIGNATURE {
|
||||||
input.seek(SeekFrom::Start(pos)).unwrap(); //TODO
|
input.seek(SeekFrom::Start(pos)).unwrap(); //TODO
|
||||||
false
|
false
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ impl<T: Read + Seek> ZipFileReader<T> {
|
||||||
|| (header.general_purpose_flags & general_purpose_flags::MASK_USE_DATA_DESCRIPTOR
|
|| (header.general_purpose_flags & general_purpose_flags::MASK_USE_DATA_DESCRIPTOR
|
||||||
!= 0)
|
!= 0)
|
||||||
{
|
{
|
||||||
warn!("Data Descriptor not yet suported");
|
warn!("Data Descriptor support is experimental");
|
||||||
zip_file
|
zip_file
|
||||||
.data
|
.data
|
||||||
.seek(SeekFrom::Current(header.compressed_size as i64))
|
.seek(SeekFrom::Current(header.compressed_size as i64))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue