From 612e8e845769c4b8f40de0f4ce6ad0356aaa38c7 Mon Sep 17 00:00:00 2001 From: Brooks Date: Tue, 24 Oct 2023 15:22:34 -0400 Subject: [PATCH] Removes Default and pub from CumulativeOffset (#33840) --- accounts-db/src/accounts_hash.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/accounts-db/src/accounts_hash.rs b/accounts-db/src/accounts_hash.rs index d5b3d34b0..7aac99f5a 100644 --- a/accounts-db/src/accounts_hash.rs +++ b/accounts-db/src/accounts_hash.rs @@ -332,14 +332,14 @@ const _: () = assert!( "CalculateHashIntermediate cannot have any padding" ); -#[derive(Default, Debug, PartialEq, Eq)] -pub struct CumulativeOffset { +#[derive(Debug, PartialEq, Eq)] +struct CumulativeOffset { /// Since the source data is at most 2D, two indexes are enough. - pub index: [usize; 2], - pub start_offset: usize, + index: [usize; 2], + start_offset: usize, } -pub trait ExtractSliceFromRawData<'b, T: 'b> { +trait ExtractSliceFromRawData<'b, T: 'b> { fn extract<'a>(&'b self, offset: &'a CumulativeOffset, start: usize) -> &'b [T]; }