diff options
| author | Bob McWhirter <[email protected]> | 2021-08-24 14:56:45 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-08-24 14:56:45 -0400 |
| commit | 4aa52f1b9e75449bcc54139e86157d923d796ec4 (patch) | |
| tree | 1435b806323f8ede39bd87c844a0d6c905d2712a | |
| parent | e36ae76e4518465953cf1adfb5c40f8cd91667d6 (diff) | |
Formatting.
| -rw-r--r-- | embassy-stm32/src/spi/v3.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/spi/v3.rs b/embassy-stm32/src/spi/v3.rs index dd8c1c2fd..b0e57254e 100644 --- a/embassy-stm32/src/spi/v3.rs +++ b/embassy-stm32/src/spi/v3.rs | |||
| @@ -561,7 +561,7 @@ impl<'d, T: Instance, Tx, Rx> traits::Spi<u8> for Spi<'d, T, Tx, Rx> { | |||
| 561 | 561 | ||
| 562 | impl<'d, T: Instance, Tx: TxDmaChannel<T>, Rx> traits::Write<u8> for Spi<'d, T, Tx, Rx> { | 562 | impl<'d, T: Instance, Tx: TxDmaChannel<T>, Rx> traits::Write<u8> for Spi<'d, T, Tx, Rx> { |
| 563 | #[rustfmt::skip] | 563 | #[rustfmt::skip] |
| 564 | type WriteFuture<'a> where Self: 'a = impl Future<Output=Result<(), Self::Error>> + 'a; | 564 | type WriteFuture<'a> where Self: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; |
| 565 | 565 | ||
| 566 | fn write<'a>(&'a mut self, data: &'a [u8]) -> Self::WriteFuture<'a> { | 566 | fn write<'a>(&'a mut self, data: &'a [u8]) -> Self::WriteFuture<'a> { |
| 567 | self.write_dma_u8(data) | 567 | self.write_dma_u8(data) |
| @@ -572,7 +572,7 @@ impl<'d, T: Instance, Tx: TxDmaChannel<T>, Rx: RxDmaChannel<T>> traits::Read<u8> | |||
| 572 | for Spi<'d, T, Tx, Rx> | 572 | for Spi<'d, T, Tx, Rx> |
| 573 | { | 573 | { |
| 574 | #[rustfmt::skip] | 574 | #[rustfmt::skip] |
| 575 | type ReadFuture<'a> where Self: 'a = impl Future<Output=Result<(), Self::Error>> + 'a; | 575 | type ReadFuture<'a> where Self: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; |
| 576 | 576 | ||
| 577 | fn read<'a>(&'a mut self, data: &'a mut [u8]) -> Self::ReadFuture<'a> { | 577 | fn read<'a>(&'a mut self, data: &'a mut [u8]) -> Self::ReadFuture<'a> { |
| 578 | self.read_dma_u8(data) | 578 | self.read_dma_u8(data) |
| @@ -583,7 +583,7 @@ impl<'d, T: Instance, Tx: TxDmaChannel<T>, Rx: RxDmaChannel<T>> traits::FullDupl | |||
| 583 | for Spi<'d, T, Tx, Rx> | 583 | for Spi<'d, T, Tx, Rx> |
| 584 | { | 584 | { |
| 585 | #[rustfmt::skip] | 585 | #[rustfmt::skip] |
| 586 | type WriteReadFuture<'a> where Self: 'a = impl Future<Output=Result<(), Self::Error>> + 'a; | 586 | type WriteReadFuture<'a> where Self: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; |
| 587 | 587 | ||
| 588 | fn read_write<'a>( | 588 | fn read_write<'a>( |
| 589 | &'a mut self, | 589 | &'a mut self, |
