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: remove explicit default impls #457

Merged
merged 3 commits into from
Feb 13, 2025

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