Skip to content

Commit a9e3f81

Browse files
authored
PyGetSetDef: Remove Eq and PartialEq (#5196)
1 parent 3947d5d commit a9e3f81

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

newsfragments/5196.removed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove `Eq` and `PartialEq` implementations on `PyGetSetDef`

pyo3-ffi/src/descrobject.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub type setter =
1414
/// Note that CPython may leave fields uninitialized. You must ensure that
1515
/// `name` != NULL before dereferencing or reading other fields.
1616
#[repr(C)]
17-
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
17+
#[derive(Copy, Clone, Debug)]
1818
pub struct PyGetSetDef {
1919
pub name: *const c_char,
2020
pub get: Option<getter>,

0 commit comments

Comments
 (0)