Skip to content

Commit

Permalink
Rust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vswarte committed Apr 14, 2024
1 parent 99296a8 commit 4b503eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/formats/src/entryfilelist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ pub struct SectionIter<T, R: Read> {
impl<T, R: Read> SectionIter<T, R> {
fn skip_to_end(&mut self) -> io::Result<()> {
if self.entries_read != self.entry_count {
let remaining =
(self.entry_count - self.entries_read) * std::mem::size_of::<T>();
let remaining = (self.entry_count - self.entries_read) * std::mem::size_of::<T>();
std::io::copy(
&mut self.decoder.by_ref().take(remaining as u64),
&mut std::io::sink(),
Expand Down

0 comments on commit 4b503eb

Please sign in to comment.