diff --git a/src/pxar/decoder.rs b/src/pxar/decoder.rs index f3e647bc..e7e2713a 100644 --- a/src/pxar/decoder.rs +++ b/src/pxar/decoder.rs @@ -28,6 +28,7 @@ pub struct Decoder Result<(), Error>> { } const HEADER_SIZE: u64 = std::mem::size_of::() as u64; +const GOODBYE_ITEM_SIZE: u64 = std::mem::size_of::() as u64; impl Result<(), Error>> Decoder { @@ -104,8 +105,6 @@ impl Result<(), Error>> Decoder { pub fn list_dir(&mut self, dir: &DirectoryEntry) -> Result, Error> { - const GOODBYE_ITEM_SIZE: u64 = std::mem::size_of::() as u64; - let start = dir.start; let end = dir.end;