aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src/dma.rs
diff options
context:
space:
mode:
authorGrant Miller <[email protected]>2023-02-24 13:01:41 -0600
committerGrant Miller <[email protected]>2023-02-24 13:01:41 -0600
commit7be4337de96de9948632bdc2fc5067d0c4a76b33 (patch)
treead08ac1de1774914dff63b4b23ad0efd8f9b3da6 /embassy-rp/src/dma.rs
parent2209bef4f22bf77d9d52cda0a0ea40485cc2747a (diff)
Add `#[must_use]` to all futures
Diffstat (limited to 'embassy-rp/src/dma.rs')
-rw-r--r--embassy-rp/src/dma.rs1
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"]
154pub struct Transfer<'a, C: Channel> { 155pub struct Transfer<'a, C: Channel> {
155 channel: PeripheralRef<'a, C>, 156 channel: PeripheralRef<'a, C>,
156} 157}