Skip to content

Commit

Permalink
fix: clippy::manual_div_ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Feb 21, 2025
1 parent e48ec0c commit e35bc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zarrs/src/array/codec/bytes_to_bytes/bz2/bz2_codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl BytesToBytesCodecTraits for Bz2Codec {
.map_or(BytesRepresentation::UnboundedSize, |size| {
// https://en.wikipedia.org/wiki/Bzip2#Implementation
// TODO: Below assumes a maximum expansion of 1.25 for the blocks + header (4 byte) + footer (11 byte), but need to read spec
BytesRepresentation::BoundedSize(4 + 11 + size + (size + 3) / 4)
BytesRepresentation::BoundedSize(4 + 11 + size + size.div_ceil(4))
})
}
}

0 comments on commit e35bc65

Please sign in to comment.