@@ -85,8 +85,8 @@ use core::ffi::{c_char, c_int, c_void};
8585use pyo3_ffi:: {
8686 PyCFunction_NewEx , PyErr_SetObject , PyLong_AsLong , PyLong_FromLongLong , PyMethodDef ,
8787 PyMethodDefPointer , PyModuleDef , PyModuleDef_HEAD_INIT , PyModuleDef_Slot , PyObject ,
88- PyTuple_New , PyTuple_SET_ITEM , PyUnicode_FromStringAndSize , PyUnicode_InternFromString ,
89- PyVectorcall_NARGS , Py_DECREF , Py_SIZE , Py_ssize_t , METH_KEYWORDS , METH_O ,
88+ PyTuple_New , PyUnicode_FromStringAndSize , PyUnicode_InternFromString , PyVectorcall_NARGS ,
89+ Py_DECREF , Py_SIZE , Py_ssize_t , METH_KEYWORDS , METH_O ,
9090} ;
9191
9292use crate :: util:: { isize_to_usize, usize_to_isize} ;
@@ -284,9 +284,9 @@ fn raise_loads_exception(err: deserialize::DeserializeError) -> *mut PyObject {
284284 PyUnicode_FromStringAndSize ( msg. as_ptr ( ) . cast :: < c_char > ( ) , usize_to_isize ( msg. len ( ) ) ) ;
285285 let args = PyTuple_New ( 3 ) ;
286286 let pos = PyLong_FromLongLong ( err_pos) ;
287- PyTuple_SET_ITEM ( args, 0 , err_msg) ;
288- PyTuple_SET_ITEM ( args, 1 , doc) ;
289- PyTuple_SET_ITEM ( args, 2 , pos) ;
287+ crate :: ffi :: PyTuple_SET_ITEM ( args, 0 , err_msg) ;
288+ crate :: ffi :: PyTuple_SET_ITEM ( args, 1 , doc) ;
289+ crate :: ffi :: PyTuple_SET_ITEM ( args, 2 , pos) ;
290290 PyErr_SetObject ( typeref:: JsonDecodeError , args) ;
291291 debug_assert ! ( ffi!( Py_REFCNT ( args) ) <= 2 ) ;
292292 Py_DECREF ( args) ;
@@ -400,7 +400,7 @@ pub(crate) unsafe extern "C" fn dumps(
400400 }
401401 if unlikely ! ( !kwnames. is_null( ) ) {
402402 for i in 0 ..=Py_SIZE ( kwnames) . saturating_sub ( 1 ) {
403- let arg = ffi ! ( PyTuple_GET_ITEM ( kwnames, i as Py_ssize_t ) ) ;
403+ let arg = crate :: ffi:: PyTuple_GET_ITEM ( kwnames, i as Py_ssize_t ) ;
404404 if core:: ptr:: eq ( arg, typeref:: DEFAULT ) {
405405 if unlikely ! ( num_args & 2 == 2 ) {
406406 return raise_dumps_exception_fixed (
0 commit comments