@@ -46,7 +46,7 @@ pub trait SpiDevice: ErrorType {
46
46
type Bus : ErrorType ;
47
47
48
48
/// Future returned by the `transaction` method.
49
- type TransactionFuture < ' a , R , F , Fut > : Future < Output = Result < R , Self :: Error > > + ' a
49
+ type TransactionFuture < ' a , R , F , Fut > : Future < Output = Result < R , Self :: Error > >
50
50
where
51
51
Self : ' a ,
52
52
R : ' a ,
@@ -170,7 +170,7 @@ impl<T: SpiDevice> SpiDevice for &mut T {
170
170
/// Flush support for SPI bus
171
171
pub trait SpiBusFlush : ErrorType {
172
172
/// Future returned by the `flush` method.
173
- type FlushFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
173
+ type FlushFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > >
174
174
where
175
175
Self : ' a ;
176
176
@@ -191,7 +191,7 @@ impl<T: SpiBusFlush> SpiBusFlush for &mut T {
191
191
/// Read-only SPI bus
192
192
pub trait SpiBusRead < Word : ' static + Copy = u8 > : SpiBusFlush {
193
193
/// Future returned by the `read` method.
194
- type ReadFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
194
+ type ReadFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > >
195
195
where
196
196
Self : ' a ;
197
197
@@ -216,7 +216,7 @@ impl<T: SpiBusRead<Word>, Word: 'static + Copy> SpiBusRead<Word> for &mut T {
216
216
/// Write-only SPI
217
217
pub trait SpiBusWrite < Word : ' static + Copy = u8 > : SpiBusFlush {
218
218
/// Future returned by the `write` method.
219
- type WriteFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
219
+ type WriteFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > >
220
220
where
221
221
Self : ' a ;
222
222
@@ -242,7 +242,7 @@ impl<T: SpiBusWrite<Word>, Word: 'static + Copy> SpiBusWrite<Word> for &mut T {
242
242
/// See (the docs on embedded-hal)[embedded_hal::spi::blocking] for important information on SPI Bus vs Device traits.
243
243
pub trait SpiBus < Word : ' static + Copy = u8 > : SpiBusRead < Word > + SpiBusWrite < Word > {
244
244
/// Future returned by the `transfer` method.
245
- type TransferFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
245
+ type TransferFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > >
246
246
where
247
247
Self : ' a ;
248
248
@@ -264,7 +264,7 @@ pub trait SpiBus<Word: 'static + Copy = u8>: SpiBusRead<Word> + SpiBusWrite<Word
264
264
) -> Self :: TransferFuture < ' a > ;
265
265
266
266
/// Future returned by the `transfer_in_place` method.
267
- type TransferInPlaceFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > > + ' a
267
+ type TransferInPlaceFuture < ' a > : Future < Output = Result < ( ) , Self :: Error > >
268
268
where
269
269
Self : ' a ;
270
270
@@ -381,7 +381,7 @@ where
381
381
{
382
382
type Bus = BUS ;
383
383
384
- type TransactionFuture < ' a , R , F , Fut > = impl Future < Output = Result < R , Self :: Error > > + ' a
384
+ type TransactionFuture < ' a , R , F , Fut > = impl Future < Output = Result < R , Self :: Error > >
385
385
where
386
386
Self : ' a , R : ' a , F : FnOnce ( * mut Self :: Bus ) -> Fut + ' a ,
387
387
Fut : Future < Output = Result < R , <Self :: Bus as ErrorType >:: Error > > + ' a ;
0 commit comments