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

Use a transparent repr for PyReadonly/ReadwriteArray as this has become as single field struct. #384

Merged
merged 1 commit into from
Jul 9, 2023

Conversation

adamreichold
Copy link
Member

Using #[repr(C)] was necessary when it had multiple fields so that the Deref implementation from PyReadwriteArray to PyReadonlyArray is sound.

…me as single field struct.

Using `#[repr(C)]` was necessary when it had multiple fields so that the `Deref`
implementation from `PyReadwriteArray` to `PyReadonlyArray` is sound.
@adamreichold adamreichold merged commit 3843fa9 into main Jul 9, 2023
31 checks passed
@adamreichold adamreichold deleted the fix-readonly-repr branch July 9, 2023 07:15
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