Skip to content

Commit

Permalink
Removes Default and pub from CumulativeOffset (solana-labs#33840)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Oct 24, 2023
1 parent abf5186 commit 612e8e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions accounts-db/src/accounts_hash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit 612e8e8

Please sign in to comment.