Commit e62b7cc
soundness for capsule reference and name (#5474)
* Add safer methods to PyCapsule that check the capsule name
* soundness for `reference` and `name`
* remove `reference_checked`
* clippy
* review feedback
* SAFETY notes on unsafe blocks
* return capsule name as `CapsuleName` struct
* update newsfragment
* review feedback
* typo
* clippy
* fingers crossed...
* Update src/types/capsule.rs
Co-authored-by: Thomas Tanon <[email protected]>
---------
Co-authored-by: Jan Špaček <[email protected]>
Co-authored-by: Thomas Tanon <[email protected]>1 parent 9f3d51d commit e62b7cc
File tree
5 files changed
+302
-98
lines changed- newsfragments
- src/types
5 files changed
+302
-98
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments