Merge pull request #3740 from davidhewitt/nightly-lints

allow dead_code in `IPowModulo`
This commit is contained in:
David Hewitt 2024-01-12 16:27:24 +00:00 committed by GitHub
commit 590ce70bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ pub struct IPowModulo(*mut ffi::PyObject);
/// Python 3.7 and older - __ipow__ does not have modulo argument correctly populated.
#[cfg(not(Py_3_8))]
#[repr(transparent)]
pub struct IPowModulo(std::mem::MaybeUninit<*mut ffi::PyObject>);
pub struct IPowModulo(#[allow(dead_code)] std::mem::MaybeUninit<*mut ffi::PyObject>);
/// Helper to use as pymethod ffi definition
#[allow(non_camel_case_types)]