@@ -13,28 +13,28 @@ where
1313 T : SpiDevice + ?Sized + ' a ,
1414 T :: Bus : SpiBusRead < Word > ,
1515 Word : Copy + ' static ,
16- = impl Future < Output = Result < ( ) , T :: Error > > ;
16+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
1717
1818type WriteFuture < ' a , T , Word >
1919where
2020 T : SpiDevice + ?Sized + ' a ,
2121 T :: Bus : SpiBusWrite < Word > ,
2222 Word : Copy + ' static ,
23- = impl Future < Output = Result < ( ) , T :: Error > > ;
23+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
2424
2525type TransferFuture < ' a , T , Word >
2626where
2727 T : SpiDevice + ?Sized + ' a ,
2828 T :: Bus : SpiBus < Word > ,
2929 Word : Copy + ' static ,
30- = impl Future < Output = Result < ( ) , T :: Error > > ;
30+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
3131
3232type TransferInPlaceFuture < ' a , T , Word >
3333where
3434 T : SpiDevice + ?Sized + ' a ,
3535 T :: Bus : SpiBus < Word > ,
3636 Word : Copy + ' static ,
37- = impl Future < Output = Result < ( ) , T :: Error > > ;
37+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
3838
3939#[ macro_export]
4040/// Do an SPI transaction on a bus.
@@ -488,7 +488,7 @@ where
488488{
489489 type Bus = BUS ;
490490
491- type TransactionFuture < ' a , R , F , Fut > = impl Future < Output = Result < R , Self :: Error > >
491+ type TransactionFuture < ' a , R , F , Fut > = impl Future < Output = Result < R , Self :: Error > > + ' a
492492 where
493493 Self : ' a , R : ' a , F : FnOnce ( * mut Self :: Bus ) -> Fut + ' a ,
494494 Fut : Future < Output = Result < R , <Self :: Bus as ErrorType >:: Error > > + ' a ;
0 commit comments