Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: define the Error type #70

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

toku-sa-n
Copy link
Contributor

Fixes: #31

@@ -81,6 +83,8 @@ pub struct HeaderPt1 {
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