Skip to content

Commit a8d9f09

Browse files
committed
Silence warning about too many function args
1 parent c0e2b88 commit a8d9f09

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pyo3-ffi/src/datetime.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,8 @@ pub unsafe fn PyDate_FromDate(year: c_int, month: c_int, day: c_int) -> *mut PyO
706706
((*PyDateTimeAPI()).Date_FromDate)(year, month, day, (*PyDateTimeAPI()).DateType)
707707
}
708708

709+
#[allow(clippy::too_many_arguments)]
710+
/// See <https://github.com/python/cpython/blob/3.10/Include/datetime.h#L226-L228>
709711
pub unsafe fn PyDateTime_FromDateAndTime(
710712
year: c_int,
711713
month: c_int,
@@ -728,6 +730,8 @@ pub unsafe fn PyDateTime_FromDateAndTime(
728730
)
729731
}
730732

733+
#[allow(clippy::too_many_arguments)]
734+
/// See <https://github.com/python/cpython/blob/3.10/Include/datetime.h#L230-L232>
731735
pub unsafe fn PyDateTime_FromDateAndTimeAndFold(
732736
year: c_int,
733737
month: c_int,

0 commit comments

Comments
 (0)