File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub use crate::cpython::object::PyTypeObject;
2424#[ cfg( all( Py_3_14 , not( Py_GIL_DISABLED ) , target_endian = "big" ) ) ]
2525/// This struct is anonymous in CPython, so the name was given by PyO3 because
2626/// Rust structs need a name.
27- pub struct PyObjectObFlagsAndRefcnt {
27+ struct PyObjectObFlagsAndRefcnt {
2828 pub ob_flags : crate :: PY_UINT32_T ,
2929 pub ob_refcnt : crate :: PY_UINT32_T ,
3030}
@@ -34,7 +34,7 @@ pub struct PyObjectObFlagsAndRefcnt {
3434#[ cfg( all( Py_3_14 , not( Py_GIL_DISABLED ) , target_endian = "little" ) ) ]
3535/// This struct is anonymous in CPython, so the name was given by PyO3 because
3636/// Rust structs need a name.
37- pub struct PyObjectObFlagsAndRefcnt {
37+ struct PyObjectObFlagsAndRefcnt {
3838 pub ob_refcnt : crate :: PY_UINT32_T ,
3939 pub ob_flags : crate :: PY_UINT32_T ,
4040}
Original file line number Diff line number Diff line change 11use crate :: pyport:: Py_ssize_t ;
22use crate :: PyObject ;
3+ #[ cfg( all( py_sys_config = "Py_REF_DEBUG" , not( Py_LIMITED_API ) ) ) ]
4+ use std:: os:: raw:: c_char;
35#[ cfg( Py_3_12 ) ]
46use std:: os:: raw:: c_int;
57#[ cfg( all( Py_3_14 , not( Py_GIL_DISABLED ) ) ) ]
@@ -8,8 +10,6 @@ use std::os::raw::c_long;
810use std:: os:: raw:: c_uint;
911#[ cfg( all( Py_3_14 , not( Py_GIL_DISABLED ) ) ) ]
1012use std:: os:: raw:: c_ulong;
11- #[ cfg( all( py_sys_config = "Py_REF_DEBUG" , not( Py_LIMITED_API ) ) ) ]
12- use std:: os:: raw:: c_char;
1313use std:: ptr;
1414#[ cfg( Py_GIL_DISABLED ) ]
1515use std:: sync:: atomic:: Ordering :: Relaxed ;
You can’t perform that action at this time.
0 commit comments