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

Remove zeroing Ref constructors #1135

Merged
merged 1 commit into from Apr 23, 2024
Merged

Conversation

joshlf
Copy link
Member

@joshlf joshlf commented Apr 23, 2024

Closes #1134

@joshlf joshlf requested a review from jswrenn April 23, 2024 20:53
@joshlf joshlf enabled auto-merge April 23, 2024 20:53
Copy link
Collaborator

@jswrenn jswrenn left a comment

Choose a reason for hiding this comment

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

Uses of these methods appear to be exceedingly rare. I did find one use of new_from_prefix_zeroed on Github, but it can be easily migrated to zero the buffer explicitly: https://github.com/filmil/sequence-map/blob/e24299b7f00ed1d2c8527bd8fd2a982a637fb293/src/header.rs#L149

@joshlf joshlf added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit 04d8151 Apr 23, 2024
210 checks passed
@joshlf joshlf deleted the remove-ref-zeroed-constructors branch April 23, 2024 21:06
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.

Remove Ref constructors which zero bytes?
2 participants