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-rp/src/dma.rs | |
| parent | 2209bef4f22bf77d9d52cda0a0ea40485cc2747a (diff) | |
Add `#[must_use]` to all futures
Diffstat (limited to 'embassy-rp/src/dma.rs')
| -rw-r--r-- | embassy-rp/src/dma.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-rp/src/dma.rs b/embassy-rp/src/dma.rs index fd281fd5d..05adcecdd 100644 --- a/embassy-rp/src/dma.rs +++ b/embassy-rp/src/dma.rs | |||
| @@ -151,6 +151,7 @@ fn copy_inner<'a, C: Channel>( | |||
| 151 | Transfer::new(ch) | 151 | Transfer::new(ch) |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | #[must_use = "futures do nothing unless you `.await` or poll them"] | ||
| 154 | pub struct Transfer<'a, C: Channel> { | 155 | pub struct Transfer<'a, C: Channel> { |
| 155 | channel: PeripheralRef<'a, C>, | 156 | channel: PeripheralRef<'a, C>, |
| 156 | } | 157 | } |
