add two missing feature restrictions for nightly
Found with `cargo hack --feature-powerset test`.
This commit is contained in:
parent
833f365aad
commit
5764355c2d
|
@ -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]
|
impl<'source, T, const N: usize> FromPyObject<'source> for [T; N]
|
||||||
where
|
where
|
||||||
for<'a> T: Default + FromPyObject<'a> + crate::buffer::Element,
|
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>
|
impl<'source, T> FromPyObject<'source> for Vec<T>
|
||||||
where
|
where
|
||||||
for<'a> T: FromPyObject<'a> + crate::buffer::Element,
|
for<'a> T: FromPyObject<'a> + crate::buffer::Element,
|
||||||
|
|
Loading…
Reference in New Issue