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-nrf/src/spim.rs | |
| parent | 985c11fad5d666485b809b846d294a1a2492b370 (diff) | |
Remove unneeded rustfmt::skip
Diffstat (limited to 'embassy-nrf/src/spim.rs')
| -rw-r--r-- | embassy-nrf/src/spim.rs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/embassy-nrf/src/spim.rs b/embassy-nrf/src/spim.rs index e88fb460c..c72c4c5bc 100644 --- a/embassy-nrf/src/spim.rs +++ b/embassy-nrf/src/spim.rs | |||
| @@ -182,8 +182,10 @@ impl<'d, T: Instance> Spi<u8> for Spim<'d, T> { | |||
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | impl<'d, T: Instance> Read<u8> for Spim<'d, T> { | 184 | impl<'d, T: Instance> Read<u8> for Spim<'d, T> { |
| 185 | #[rustfmt::skip] | 185 | type ReadFuture<'a> |
| 186 | type ReadFuture<'a> where Self: 'a = impl Future<Output=Result<(), Self::Error>> + 'a; | 186 | where |
| 187 | Self: 'a, | ||
| 188 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 187 | 189 | ||
| 188 | fn read<'a>(&'a mut self, data: &'a mut [u8]) -> Self::ReadFuture<'a> { | 190 | fn read<'a>(&'a mut self, data: &'a mut [u8]) -> Self::ReadFuture<'a> { |
| 189 | self.read_write(data, &[]) | 191 | self.read_write(data, &[]) |
| @@ -191,8 +193,10 @@ impl<'d, T: Instance> Read<u8> for Spim<'d, T> { | |||
| 191 | } | 193 | } |
| 192 | 194 | ||
| 193 | impl<'d, T: Instance> Write<u8> for Spim<'d, T> { | 195 | impl<'d, T: Instance> Write<u8> for Spim<'d, T> { |
| 194 | #[rustfmt::skip] | 196 | type WriteFuture<'a> |
| 195 | type WriteFuture<'a> where Self: 'a = impl Future<Output=Result<(), Self::Error>> + 'a; | 197 | where |
| 198 | Self: 'a, | ||
| 199 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 196 | 200 | ||
| 197 | fn write<'a>(&'a mut self, data: &'a [u8]) -> Self::WriteFuture<'a> { | 201 | fn write<'a>(&'a mut self, data: &'a [u8]) -> Self::WriteFuture<'a> { |
| 198 | self.read_write(&mut [], data) | 202 | self.read_write(&mut [], data) |
| @@ -200,8 +204,10 @@ impl<'d, T: Instance> Write<u8> for Spim<'d, T> { | |||
| 200 | } | 204 | } |
| 201 | 205 | ||
| 202 | impl<'d, T: Instance> FullDuplex<u8> for Spim<'d, T> { | 206 | impl<'d, T: Instance> FullDuplex<u8> for Spim<'d, T> { |
| 203 | #[rustfmt::skip] | 207 | type WriteReadFuture<'a> |
| 204 | type WriteReadFuture<'a> where Self: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; | 208 | where |
| 209 | Self: 'a, | ||
| 210 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 205 | 211 | ||
| 206 | fn read_write<'a>(&'a mut self, rx: &'a mut [u8], tx: &'a [u8]) -> Self::WriteReadFuture<'a> { | 212 | fn read_write<'a>(&'a mut self, rx: &'a mut [u8], tx: &'a [u8]) -> Self::WriteReadFuture<'a> { |
| 207 | async move { | 213 | async move { |
