Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vswarte committed Apr 16, 2024
1 parent d63a958 commit 41b6fd1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/formats/src/entryfilelist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ impl<T, R: Read> SectionIter<T, R> {
fn skip_to_end(&mut self) -> io::Result<()> {
if self.entries_remaining != 0 {
std::io::copy(
&mut self.decoder.by_ref()
.take((self.entries_remaining * std::mem::size_of::<T>()) as u64),
&mut self
.decoder
.by_ref()
.take((self.entries_remaining * std::mem::size_of::<T>()) as u64),
&mut std::io::sink(),
)?;
}
Expand Down

0 comments on commit 41b6fd1

Please sign in to comment.