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

panic safety fix #195

Merged
merged 1 commit into from
Mar 26, 2024
Merged

panic safety fix #195

merged 1 commit into from
Mar 26, 2024

Conversation

JOE1994
Copy link
Contributor

@JOE1994 JOE1994 commented Jan 4, 2021

guard against potential panic within user-provided into().

ManuallyDrop<T> is a zero-cost wrapper, so hopefully there shouldn't be a performance overhead due to the fix.

Fixes #194

Thank you for reviewing this PR 👍

guard against potential panic within user-provided `into()`.
@c0gent c0gent merged commit 6c56e2d into cogciprocate:master Mar 26, 2024
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.

double drop may happen upon panic in EventList as std::convert::From<[E; n]>>::from
2 participants