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/rng.rs | |
| parent | 985c11fad5d666485b809b846d294a1a2492b370 (diff) | |
Remove unneeded rustfmt::skip
Diffstat (limited to 'embassy-nrf/src/rng.rs')
| -rw-r--r-- | embassy-nrf/src/rng.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/embassy-nrf/src/rng.rs b/embassy-nrf/src/rng.rs index 20d033a12..645f9860e 100644 --- a/embassy-nrf/src/rng.rs +++ b/embassy-nrf/src/rng.rs | |||
| @@ -157,8 +157,10 @@ impl<'d> Drop for Rng<'d> { | |||
| 157 | impl<'d> traits::rng::Rng for Rng<'d> { | 157 | impl<'d> traits::rng::Rng for Rng<'d> { |
| 158 | type Error = Infallible; | 158 | type Error = Infallible; |
| 159 | 159 | ||
| 160 | #[rustfmt::skip] // For some reason rustfmt removes the where clause | 160 | type RngFuture<'a> |
| 161 | type RngFuture<'a> where 'd: 'a = impl Future<Output = Result<(), Self::Error>> + 'a; | 161 | where |
| 162 | 'd: 'a, | ||
| 163 | = impl Future<Output = Result<(), Self::Error>> + 'a; | ||
| 162 | 164 | ||
| 163 | fn fill_bytes<'a>(&'a mut self, dest: &'a mut [u8]) -> Self::RngFuture<'a> { | 165 | fn fill_bytes<'a>(&'a mut self, dest: &'a mut [u8]) -> Self::RngFuture<'a> { |
| 164 | async move { | 166 | async move { |
