Skip to content

Commit 471bd35

Browse files
committed
tmp
1 parent 4795d90 commit 471bd35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyo3-ffi/src/object.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

pyo3-ffi/src/refcount.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
use crate::pyport::Py_ssize_t;
22
use 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)]
46
use 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;
810
use std::os::raw::c_uint;
911
#[cfg(all(Py_3_14, not(Py_GIL_DISABLED)))]
1012
use 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;
1313
use std::ptr;
1414
#[cfg(Py_GIL_DISABLED)]
1515
use std::sync::atomic::Ordering::Relaxed;

0 commit comments

Comments
 (0)