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

fix panic safety issue: guard against double drop #48

Merged
merged 1 commit into from
Jan 11, 2021
Merged

fix panic safety issue: guard against double drop #48

merged 1 commit into from
Jan 11, 2021

Conversation

JOE1994
Copy link
Contributor

@JOE1994 JOE1994 commented Jan 11, 2021

Fixes #47

Wraps self with ManuallyDrop to guard against double drop bugs.
ManuallyDrop is a zero-cost wrapper type.

Thank you for reviewing this PR 👍

@liebharc
Copy link
Owner

Wow, thanks a lot for reporting AND fixing this. Much appreciated :).

@liebharc liebharc merged commit bacf18e into liebharc:master Jan 11, 2021
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.

panic safety issue in impl TransformContent<S, D> for [S; (2|3|4)]
2 participants