Skip to content

Commit

Permalink
fix MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
Icxolu committed Oct 26, 2024
1 parent a3d88cc commit 1458daa
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/conversions/smallvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ impl<'a, 'py, A> IntoPyObject<'py> for &'a SmallVec<A>
where
A: Array,
&'a A::Item: IntoPyObject<'py>,
A::Item: 'a, // MSRV
{
type Target = PyAny;
type Output = Bound<'py, Self::Target>;
Expand Down
4 changes: 4 additions & 0 deletions src/conversions/std/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a collections::HashMap<K, V, H>
where
&'a K: IntoPyObject<'py> + cmp::Eq + hash::Hash,
&'a V: IntoPyObject<'py>,
K: 'a, // MSRV
V: 'a, // MSRV
H: hash::BuildHasher,
{
type Target = PyDict;
Expand Down Expand Up @@ -146,6 +148,8 @@ impl<'a, 'py, K, V> IntoPyObject<'py> for &'a collections::BTreeMap<K, V>
where
&'a K: IntoPyObject<'py> + cmp::Eq,
&'a V: IntoPyObject<'py>,
K: 'a,
V: 'a,
{
type Target = PyDict;
type Output = Bound<'py, Self::Target>;
Expand Down
2 changes: 2 additions & 0 deletions src/conversions/std/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ where
impl<'a, 'py, K, H> IntoPyObject<'py> for &'a collections::HashSet<K, H>
where
&'a K: IntoPyObject<'py> + Eq + hash::Hash,
K: 'a, // MSRV
H: hash::BuildHasher,
{
type Target = PySet;
Expand Down Expand Up @@ -147,6 +148,7 @@ where
impl<'a, 'py, K> IntoPyObject<'py> for &'a collections::BTreeSet<K>
where
&'a K: IntoPyObject<'py> + cmp::Ord,
K: 'a,
{
type Target = PySet;
type Output = Bound<'py, Self::Target>;
Expand Down
1 change: 1 addition & 0 deletions src/conversions/std/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ impl IntoPy<PyObject> for &[u8] {
impl<'a, 'py, T> IntoPyObject<'py> for &'a [T]
where
&'a T: IntoPyObject<'py>,
T: 'a, // MSRV
{
type Target = PyAny;
type Output = Bound<'py, Self::Target>;
Expand Down
1 change: 1 addition & 0 deletions src/conversions/std/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ where
impl<'a, 'py, T> IntoPyObject<'py> for &'a Vec<T>
where
&'a T: IntoPyObject<'py>,
T: 'a, // MSRV
{
type Target = PyAny;
type Output = Bound<'py, Self::Target>;
Expand Down
1 change: 1 addition & 0 deletions src/types/tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ macro_rules! tuple_conversion ({$length:expr,$(($refN:ident, $n:tt, $T:ident)),+
impl <'a, 'py, $($T),+> IntoPyObject<'py> for &'a ($($T,)+)
where
$(&'a $T: IntoPyObject<'py>,)+
$($T: 'a,)+ // MSRV
{
type Target = PyTuple;
type Output = Bound<'py, Self::Target>;
Expand Down

0 comments on commit 1458daa

Please sign in to comment.