Skip to content

Conversation

@toku-sa-n
Copy link
Contributor

Fixes: #31

pub padding: [u8; 7],
}

const _CONST_CHECK_HEADER_PT1_SIZE: [(); !(mem::size_of::<HeaderPt1>() == 16) as usize] = [];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the size check of HeaderPt1 from sanity_check as it can be done in a const expression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return Error type instead of String in Results

1 participant