Commit 3843fa9
committed
Use a transparent repr for PyReadonly/ReadwriteArray as this has become 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.1 parent 08510a3 commit 3843fa9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
0 commit comments