Skip to content

Conversation

CosminPerRam
Copy link
Contributor

Crc: The explicit defined impl was added in this commit, not sure if there was a reason for it to not be in the derive, Hasher (crc32fast 1.2.0 at that time) had a Default impl.

GzHeaderState: here to build on versions older than 1.62 (?), not applicable anymore.

GzBuilder: here (same commit as Crc).

Note: as now, default and new (on GzBuilder and Crc) are the same, so I replaced explicit construction with a default call, please mention if this is not appropiate.

Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

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

Thanks a lot, a great catch!

I also don't know why the derive wasn't use, but think it is the way to go as well.

@Byron Byron merged commit 1567c81 into rust-lang:main Feb 13, 2025
14 checks passed
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.

2 participants