Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Kolenbrander <[email protected]>
  • Loading branch information
davidhewitt and mejrs authored Sep 29, 2021
1 parent cee98e1 commit efa2d85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ffi/modsupport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ extern "C" {
#[cfg(Py_3_10)]
#[cfg_attr(docsrs, doc(cfg(Py_3_10)))]
pub fn PyModule_AddObjectRef(
arg1: *mut PyObject,
arg2: *const c_char,
arg3: *mut PyObject,
module: *mut PyObject,
name: *const c_char,
value: *mut PyObject,
) -> c_int;
#[cfg_attr(PyPy, link_name = "PyPyModule_AddObject")]
pub fn PyModule_AddObject(
Expand Down
1 change: 1 addition & 0 deletions src/ffi/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ pub const Py_GE: c_int = 5;

#[cfg(Py_3_10)]
#[repr(C)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum PySendResult {
PYGEN_RETURN = 0,
PYGEN_ERROR = -1,
Expand Down

0 comments on commit efa2d85

Please sign in to comment.