Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Mar 30, 2023
1 parent 7df4294 commit 3c2ac47
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bucket_map/src/index_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,12 @@ pub(crate) struct MultipleSlots {
}

impl MultipleSlots {
pub(crate) fn set_storage_capacity_when_created_pow2(
&mut self,
storage_capacity_when_created_pow2: u8,
) {
fn set_storage_capacity_when_created_pow2(&mut self, storage_capacity_when_created_pow2: u8) {
self.storage_cap_and_offset
.set_capacity_when_created_pow2(storage_capacity_when_created_pow2)
}

pub(crate) fn set_storage_offset(&mut self, storage_offset: u64) {
fn set_storage_offset(&mut self, storage_offset: u64) {
self.storage_cap_and_offset
.set_offset_checked(storage_offset)
.expect("New storage offset must fit into 7 bytes!")
Expand Down

0 comments on commit 3c2ac47

Please sign in to comment.