Removes Default and pub from CumulativeOffset (#33840)

This commit is contained in:
Brooks 2023-10-24 15:22:34 -04:00 committed by GitHub
parent abf51864b4
commit 612e8e8457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -332,14 +332,14 @@ const _: () = assert!(
"CalculateHashIntermediate cannot have any padding" "CalculateHashIntermediate cannot have any padding"
); );
#[derive(Default, Debug, PartialEq, Eq)] #[derive(Debug, PartialEq, Eq)]
pub struct CumulativeOffset { struct CumulativeOffset {
/// Since the source data is at most 2D, two indexes are enough. /// Since the source data is at most 2D, two indexes are enough.
pub index: [usize; 2], index: [usize; 2],
pub start_offset: usize, 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]; fn extract<'a>(&'b self, offset: &'a CumulativeOffset, start: usize) -> &'b [T];
} }