Skip to content

Commit

Permalink
Remove #[allow(unused)]
Browse files Browse the repository at this point in the history
Now that we use the zip module as part of normalization and
symbolization, let's remove the #[allow(unused)] annotation.

Signed-off-by: Daniel Müller <[email protected]>
  • Loading branch information
d-e-s-o committed Jun 8, 2023
1 parent a8c2bae commit 0c62d13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ pub mod normalize;
mod resolver;
pub mod symbolize;
mod util;
// TODO: Remove `allow`.
#[allow(unused)]
mod zip;

use std::fmt::Display;
Expand Down
8 changes: 2 additions & 6 deletions src/zip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ use std::ffi::OsStr;
use std::fmt::Debug;
use std::fmt::Formatter;
use std::fmt::Result as FmtResult;
use std::fs::File;
use std::io::Error;
use std::io::ErrorKind;
use std::io::Result;
use std::mem::size_of;
use std::os::unix::ffi::OsStrExt as _;
use std::path::Path;
use std::rc::Rc;

use crate::mmap::Mmap;
use crate::util::Pod;
Expand Down Expand Up @@ -220,11 +218,9 @@ impl<'archive> EntryIter<'archive> {
)))
}

let name = iter
let _name = iter
.cd_record_data
.read_slice(cdfh.file_name_length.into())?;
let name = OsStr::from_bytes(name);

let _extra = iter
.cd_record_data
.read_slice(cdfh.extra_field_length.into())?;
Expand Down Expand Up @@ -498,7 +494,7 @@ mod tests {
- 1,
)
.unwrap();
copy(&mut partial_data, &mut corrupted_zip);
let _cnt = copy(&mut partial_data, &mut corrupted_zip).unwrap();

// The archive only contains a corrupted central directory and no end of
// central directory marker at all.
Expand Down

0 comments on commit 0c62d13

Please sign in to comment.