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-nrf | |
| parent | 2209bef4f22bf77d9d52cda0a0ea40485cc2747a (diff) | |
Add `#[must_use]` to all futures
Diffstat (limited to 'embassy-nrf')
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index e1816eb9b..66c682b43 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs | |||
| @@ -315,6 +315,7 @@ impl<'d, C: Channel, T: GpioPin> OutputChannel<'d, C, T> { | |||
| 315 | 315 | ||
| 316 | // ======================= | 316 | // ======================= |
| 317 | 317 | ||
| 318 | #[must_use = "futures do nothing unless you `.await` or poll them"] | ||
| 318 | pub(crate) struct PortInputFuture<'a> { | 319 | pub(crate) struct PortInputFuture<'a> { |
| 319 | pin: PeripheralRef<'a, AnyPin>, | 320 | pin: PeripheralRef<'a, AnyPin>, |
| 320 | } | 321 | } |
