Skip to content

Commit

Permalink
Fix visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f committed Nov 15, 2023
1 parent b933329 commit 31dea3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lazy-pages/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl LazyPagesExecutionContext {
/// First part is always the same, so we can copy it to buffer
/// once and then use it for all pages.
#[derive(Debug)]
pub struct PagePrefix {
pub(crate) struct PagePrefix {
buffer: Vec<u8>,
}

Expand All @@ -254,7 +254,7 @@ impl PagePrefix {
}

/// Returns key in storage for `page`.
pub fn key_for_page(&mut self, page: GearPage) -> &[u8] {
fn key_for_page(&mut self, page: GearPage) -> &[u8] {
let len = self.buffer.len();
let page_no: u32 = page.into();
self.buffer[len - mem::size_of::<u32>()..len]
Expand Down

0 comments on commit 31dea3b

Please sign in to comment.