Skip to content

Commit

Permalink
Avoid unused import for PyModuleDef when not(Py_3_11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jadedpasta committed Jan 10, 2024
1 parent 6f5976e commit 673d8d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyo3-ffi/src/cpython/object.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#[cfg(Py_3_8)]
use crate::vectorcallfunc;
use crate::{object, PyGetSetDef, PyMemberDef, PyMethodDef, PyModuleDef, PyObject, Py_ssize_t};
#[cfg(all(not(PyPy), Py_3_11))]
use crate::PyModuleDef;
use crate::{object, PyGetSetDef, PyMemberDef, PyMethodDef, PyObject, Py_ssize_t};
use std::mem;
use std::os::raw::{c_char, c_int, c_uint, c_ulong, c_void};

Expand Down

0 comments on commit 673d8d9

Please sign in to comment.