-
Notifications
You must be signed in to change notification settings - Fork 170
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: impl From<Flush> to MZFlush #462
Conversation
I also reordered |
Also found a spelling mistake and a missing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your continued contributions, they are much appreciated!
I also like the small, focussed PRs.
Let's merge this right after another typo 'bit the dust' :).
src/mem.rs
Outdated
/// | ||
/// All input data so far will be available to the decompressor (as with | ||
/// `Flush::Sync`). This completes the current deflate block and follows it | ||
/// with an empty fixed codes block that is 10 bites long, and it assures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// with an empty fixed codes block that is 10 bites long, and it assures | |
/// with an empty fixed codes block that is 10 bytes long, and it assures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am aware this typos wasn't introduced here, but we might as well fix it now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your continued contributions, they are much appreciated!
Thank you for the kind words, I'm just doing what I can in my capabilities (:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, appreciated!
You seem to be studying the entire codebase and I am curious to see what else you will find :).
We would never hit an error in building a
MZFlush
, because all values of FlushDecompress and FlushCompress (asi32
) map to MZFlush.Implementing
From
to it is simpler and better as we get rid of the redundant.unwrap()
s, casts toi32
and can see directly the translation.For more context for the mapping done here, see MZFlush::new.