diff options
| author | Grant Miller <[email protected]> | 2023-02-24 13:01:41 -0600 |
|---|---|---|
| committer | Grant Miller <[email protected]> | 2023-02-24 13:01:41 -0600 |
| commit | 7be4337de96de9948632bdc2fc5067d0c4a76b33 (patch) | |
| tree | ad08ac1de1774914dff63b4b23ad0efd8f9b3da6 /embassy-stm32/src | |
| parent | 2209bef4f22bf77d9d52cda0a0ea40485cc2747a (diff) | |
Add `#[must_use]` to all futures
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/dma/mod.rs | 1 | ||||
| -rw-r--r-- | embassy-stm32/src/exti.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/dma/mod.rs b/embassy-stm32/src/dma/mod.rs index f5a82fb7a..0030bd575 100644 --- a/embassy-stm32/src/dma/mod.rs +++ b/embassy-stm32/src/dma/mod.rs | |||
| @@ -273,6 +273,7 @@ mod transfers { | |||
| 273 | Transfer::new(channel) | 273 | Transfer::new(channel) |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | #[must_use = "futures do nothing unless you `.await` or poll them"] | ||
| 276 | pub(crate) struct Transfer<'a, C: Channel> { | 277 | pub(crate) struct Transfer<'a, C: Channel> { |
| 277 | channel: PeripheralRef<'a, C>, | 278 | channel: PeripheralRef<'a, C>, |
| 278 | } | 279 | } |
diff --git a/embassy-stm32/src/exti.rs b/embassy-stm32/src/exti.rs index c9c3ef62a..e1ce09a49 100644 --- a/embassy-stm32/src/exti.rs +++ b/embassy-stm32/src/exti.rs | |||
| @@ -198,6 +198,7 @@ mod eha { | |||
| 198 | } | 198 | } |
| 199 | } | 199 | } |
| 200 | 200 | ||
| 201 | #[must_use = "futures do nothing unless you `.await` or poll them"] | ||
| 201 | struct ExtiInputFuture<'a> { | 202 | struct ExtiInputFuture<'a> { |
| 202 | pin: u8, | 203 | pin: u8, |
| 203 | phantom: PhantomData<&'a mut AnyPin>, | 204 | phantom: PhantomData<&'a mut AnyPin>, |
