Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Jun 29, 2023
1 parent ac1a316 commit 933b19a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/collate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,7 @@ where

// the exact position at the end of the header,
// precisely sizeof(u64) bytes beyond the num_chunks field.
let end_header_pos =
br.get_ref().stream_position().unwrap() - (br.buffer().len() as u64);
let end_header_pos = br.get_ref().stream_position().unwrap() - (br.buffer().len() as u64);

info!(
log,
Expand Down
3 changes: 1 addition & 2 deletions src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ where
}

// keep a pointer to header pos
let end_header_pos =
data.stream_position().unwrap() - std::mem::size_of::<u64>() as u64;
let end_header_pos = data.stream_position().unwrap() - std::mem::size_of::<u64>() as u64;

// check header position
info!(log, "end header pos: {:?}", end_header_pos,);
Expand Down

0 comments on commit 933b19a

Please sign in to comment.