Skip to content

Commit

Permalink
Merge pull request #1954 from PyO3/feature-fix
Browse files Browse the repository at this point in the history
add two missing feature restrictions for nightly
  • Loading branch information
davidhewitt committed Oct 30, 2021
2 parents 50df2c7 + 5764355 commit bfe7086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/conversions/array.rs
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/types/sequence.rs
Expand Up @@ -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,
Expand Down

0 comments on commit bfe7086

Please sign in to comment.