Implement Debug for PyObject in Python 2

For whatever reason I cannot build rustapi_module without this, and
rather than figure out the core problem, I figured that, for symmetry,
it makes sense to just implement Debug for PyObject.
This commit is contained in:
Paul Ganssle 2018-08-21 12:45:39 -04:00
parent cf3b1d2cc3
commit 26c5397618
No known key found for this signature in database
GPG Key ID: CD54FCE3D964BEFB
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ use std::os::raw::{c_char, c_double, c_int, c_long, c_uint, c_void};
use std::ptr;
#[repr(C)]
#[derive(Copy, Clone)]
#[derive(Debug, Copy, Clone)]
pub struct PyObject {
#[cfg(py_sys_config = "Py_TRACE_REFS")]
pub _ob_next: *mut PyObject,