diff options
| author | Ulf Lilleengen <[email protected]> | 2021-12-16 11:37:53 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2021-12-16 11:37:53 +0100 |
| commit | 2bbd1ddb8a0e36e91a2b328024f313b780b1b851 (patch) | |
| tree | 4e41c56f0032f811faac07bc98f93b522ea2e1f3 /embassy-stm32/src/i2c | |
| parent | 985c11fad5d666485b809b846d294a1a2492b370 (diff) | |
Remove unneeded rustfmt::skip
Diffstat (limited to 'embassy-stm32/src/i2c')
| -rw-r--r-- | embassy-stm32/src/i2c/v2.rs | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index 94c4d9a7c..73b6f5517 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -858,12 +858,27 @@ impl<'d, T: Instance, TXDMA: super::TxDma<T>, RXDMA: super::RxDma<T>> I2cTrait<u | |||
| 858 | { | 858 | { |
| 859 | type Error = super::Error; | 859 | type Error = super::Error; |
| 860 | 860 | ||
| 861 | #[rustfmt::skip] | 861 | type WriteFuture<'a> |
| 862 | type WriteFuture<'a> where 'd: 'a, T: 'a, TXDMA: 'a, RXDMA: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; | 862 | where |
| 863 | #[rustfmt::skip] | 863 | 'd: 'a, |
| 864 | type ReadFuture<'a> where 'd: 'a, T: 'a, TXDMA: 'a, RXDMA: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; | 864 | T: 'a, |
| 865 | #[rustfmt::skip] | 865 | TXDMA: 'a, |
| 866 | type WriteReadFuture<'a> where 'd: 'a, T: 'a, TXDMA: 'a, RXDMA: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; | 866 | RXDMA: 'a, |
| 867 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 868 | type ReadFuture<'a> | ||
| 869 | where | ||
| 870 | 'd: 'a, | ||
| 871 | T: 'a, | ||
| 872 | TXDMA: 'a, | ||
| 873 | RXDMA: 'a, | ||
| 874 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 875 | type WriteReadFuture<'a> | ||
| 876 | where | ||
| 877 | 'd: 'a, | ||
| 878 | T: 'a, | ||
| 879 | TXDMA: 'a, | ||
| 880 | RXDMA: 'a, | ||
| 881 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 867 | 882 | ||
| 868 | fn read<'a>(&'a mut self, address: u8, buffer: &'a mut [u8]) -> Self::ReadFuture<'a> { | 883 | fn read<'a>(&'a mut self, address: u8, buffer: &'a mut [u8]) -> Self::ReadFuture<'a> { |
| 869 | self.read_dma(address, buffer, false) | 884 | self.read_dma(address, buffer, false) |
