Merge pull request #1954 from PyO3/feature-fix
add two missing feature restrictions for nightly
This commit is contained in:
commit
bfe708683b
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue