Skip to content

Commit 1458daa

Browse files
committed
fix MSRV
1 parent a3d88cc commit 1458daa

File tree

6 files changed

+10
-0
lines changed

6 files changed

+10
-0
lines changed

src/conversions/smallvec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ impl<'a, 'py, A> IntoPyObject<'py> for &'a SmallVec<A>
8181
where
8282
A: Array,
8383
&'a A::Item: IntoPyObject<'py>,
84+
A::Item: 'a, // MSRV
8485
{
8586
type Target = PyAny;
8687
type Output = Bound<'py, Self::Target>;

src/conversions/std/map.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a collections::HashMap<K, V, H>
8585
where
8686
&'a K: IntoPyObject<'py> + cmp::Eq + hash::Hash,
8787
&'a V: IntoPyObject<'py>,
88+
K: 'a, // MSRV
89+
V: 'a, // MSRV
8890
H: hash::BuildHasher,
8991
{
9092
type Target = PyDict;
@@ -146,6 +148,8 @@ impl<'a, 'py, K, V> IntoPyObject<'py> for &'a collections::BTreeMap<K, V>
146148
where
147149
&'a K: IntoPyObject<'py> + cmp::Eq,
148150
&'a V: IntoPyObject<'py>,
151+
K: 'a,
152+
V: 'a,
149153
{
150154
type Target = PyDict;
151155
type Output = Bound<'py, Self::Target>;

src/conversions/std/set.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ where
7575
impl<'a, 'py, K, H> IntoPyObject<'py> for &'a collections::HashSet<K, H>
7676
where
7777
&'a K: IntoPyObject<'py> + Eq + hash::Hash,
78+
K: 'a, // MSRV
7879
H: hash::BuildHasher,
7980
{
8081
type Target = PySet;
@@ -147,6 +148,7 @@ where
147148
impl<'a, 'py, K> IntoPyObject<'py> for &'a collections::BTreeSet<K>
148149
where
149150
&'a K: IntoPyObject<'py> + cmp::Ord,
151+
K: 'a,
150152
{
151153
type Target = PySet;
152154
type Output = Bound<'py, Self::Target>;

src/conversions/std/slice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ impl IntoPy<PyObject> for &[u8] {
1919
impl<'a, 'py, T> IntoPyObject<'py> for &'a [T]
2020
where
2121
&'a T: IntoPyObject<'py>,
22+
T: 'a, // MSRV
2223
{
2324
type Target = PyAny;
2425
type Output = Bound<'py, Self::Target>;

src/conversions/std/vec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ where
6565
impl<'a, 'py, T> IntoPyObject<'py> for &'a Vec<T>
6666
where
6767
&'a T: IntoPyObject<'py>,
68+
T: 'a, // MSRV
6869
{
6970
type Target = PyAny;
7071
type Output = Bound<'py, Self::Target>;

src/types/tuple.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ macro_rules! tuple_conversion ({$length:expr,$(($refN:ident, $n:tt, $T:ident)),+
552552
impl <'a, 'py, $($T),+> IntoPyObject<'py> for &'a ($($T,)+)
553553
where
554554
$(&'a $T: IntoPyObject<'py>,)+
555+
$($T: 'a,)+ // MSRV
555556
{
556557
type Target = PyTuple;
557558
type Output = Bound<'py, Self::Target>;

0 commit comments

Comments
 (0)