Skip to content

Commit

Permalink
feat: make IndexPack::pack_size() public
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome committed Sep 23, 2024
1 parent a6c9486 commit bf29cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/repofile/indexfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl IndexPack {

/// Calculate the pack size from the contained blobs
#[must_use]
pub(crate) fn pack_size(&self) -> u32 {
pub fn pack_size(&self) -> u32 {
self.size
.unwrap_or_else(|| PackHeaderRef::from_index_pack(self).pack_size())
}
Expand Down

0 comments on commit bf29cd8

Please sign in to comment.