Skip to content

Commit

Permalink
fix unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Jun 7, 2024
1 parent e843c33 commit d3e7fcd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyo3-ffi/src/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
use crate::{PyLong_AsLong, PyLong_Check, PyObject_GetAttrString, Py_DecRef};
use crate::{PyObject, PyObject_TypeCheck, PyTypeObject, Py_TYPE};
use std::cell::UnsafeCell;
use std::os::raw::{c_char, c_int};
use std::os::raw::c_int;
use std::ptr;
#[cfg(not(PyPy))]
use {crate::PyCapsule_Import, std::ffi::CString};
#[cfg(not(any(PyPy, GraalPy)))]
use {crate::Py_hash_t, std::os::raw::c_uchar};
use {
crate::Py_hash_t,
std::os::raw::{c_char, c_uchar},
};
// Type struct wrappers
const _PyDateTime_DATE_DATASIZE: usize = 4;
const _PyDateTime_TIME_DATASIZE: usize = 6;
Expand Down

0 comments on commit d3e7fcd

Please sign in to comment.