@@ -46,7 +46,7 @@ pub trait SpiDevice: ErrorType {
4646 type Bus : ErrorType ;
4747
4848 /// 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 > >
5050 where
5151 Self : ' a ,
5252 R : ' a ,
@@ -170,7 +170,7 @@ impl<T: SpiDevice> SpiDevice for &mut T {
170170/// Flush support for SPI bus
171171pub trait SpiBusFlush : ErrorType {
172172 /// 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 > >
174174 where
175175 Self : ' a ;
176176
@@ -191,7 +191,7 @@ impl<T: SpiBusFlush> SpiBusFlush for &mut T {
191191/// Read-only SPI bus
192192pub trait SpiBusRead < Word : ' static + Copy = u8 > : SpiBusFlush {
193193 /// 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 > >
195195 where
196196 Self : ' a ;
197197
@@ -216,7 +216,7 @@ impl<T: SpiBusRead<Word>, Word: 'static + Copy> SpiBusRead<Word> for &mut T {
216216/// Write-only SPI
217217pub trait SpiBusWrite < Word : ' static + Copy = u8 > : SpiBusFlush {
218218 /// 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 > >
220220 where
221221 Self : ' a ;
222222
@@ -242,7 +242,7 @@ impl<T: SpiBusWrite<Word>, Word: 'static + Copy> SpiBusWrite<Word> for &mut T {
242242/// See (the docs on embedded-hal)[embedded_hal::spi::blocking] for important information on SPI Bus vs Device traits.
243243pub trait SpiBus < Word : ' static + Copy = u8 > : SpiBusRead < Word > + SpiBusWrite < Word > {
244244 /// 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 > >
246246 where
247247 Self : ' a ;
248248
@@ -264,7 +264,7 @@ pub trait SpiBus<Word: 'static + Copy = u8>: SpiBusRead<Word> + SpiBusWrite<Word
264264 ) -> Self :: TransferFuture < ' a > ;
265265
266266 /// 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 > >
268268 where
269269 Self : ' a ;
270270
@@ -381,7 +381,7 @@ where
381381{
382382 type Bus = BUS ;
383383
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 > >
385385 where
386386 Self : ' a , R : ' a , F : FnOnce ( * mut Self :: Bus ) -> Fut + ' a ,
387387 Fut : Future < Output = Result < R , <Self :: Bus as ErrorType >:: Error > > + ' a ;
0 commit comments