Merge pull request #1954 from PyO3/feature-fix

add two missing feature restrictions for nightly
This commit is contained in:
David Hewitt 2021-10-30 11:20:52 +01:00 committed by GitHub
commit bfe708683b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ mod min_const_generics {
}
}
#[cfg(feature = "nightly")]
#[cfg(all(feature = "nightly", not(Py_LIMITED_API)))]
impl<'source, T, const N: usize> FromPyObject<'source> for [T; N]
where
for<'a> T: Default + FromPyObject<'a> + crate::buffer::Element,

View File

@ -279,7 +279,7 @@ where
}
}
#[cfg(feature = "nightly")]
#[cfg(all(feature = "nightly", not(Py_LIMITED_API)))]
impl<'source, T> FromPyObject<'source> for Vec<T>
where
for<'a> T: FromPyObject<'a> + crate::buffer::Element,