@@ -13,28 +13,28 @@ where
13
13
T : SpiDevice + ?Sized + ' a ,
14
14
T :: Bus : SpiBusRead < Word > ,
15
15
Word : Copy + ' static ,
16
- = impl Future < Output = Result < ( ) , T :: Error > > ;
16
+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
17
17
18
18
type WriteFuture < ' a , T , Word >
19
19
where
20
20
T : SpiDevice + ?Sized + ' a ,
21
21
T :: Bus : SpiBusWrite < Word > ,
22
22
Word : Copy + ' static ,
23
- = impl Future < Output = Result < ( ) , T :: Error > > ;
23
+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
24
24
25
25
type TransferFuture < ' a , T , Word >
26
26
where
27
27
T : SpiDevice + ?Sized + ' a ,
28
28
T :: Bus : SpiBus < Word > ,
29
29
Word : Copy + ' static ,
30
- = impl Future < Output = Result < ( ) , T :: Error > > ;
30
+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
31
31
32
32
type TransferInPlaceFuture < ' a , T , Word >
33
33
where
34
34
T : SpiDevice + ?Sized + ' a ,
35
35
T :: Bus : SpiBus < Word > ,
36
36
Word : Copy + ' static ,
37
- = impl Future < Output = Result < ( ) , T :: Error > > ;
37
+ = impl Future < Output = Result < ( ) , T :: Error > > + ' a ;
38
38
39
39
#[ macro_export]
40
40
/// Do an SPI transaction on a bus.
@@ -488,7 +488,7 @@ where
488
488
{
489
489
type Bus = BUS ;
490
490
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
492
492
where
493
493
Self : ' a , R : ' a , F : FnOnce ( * mut Self :: Bus ) -> Fut + ' a ,
494
494
Fut : Future < Output = Result < R , <Self :: Bus as ErrorType >:: Error > > + ' a ;
0 commit comments