Skip to content

Commit 8046e4d

Browse files
committed
fix: add #[must_use] to VolatilePtr::read
Signed-off-by: Martin Kröning <[email protected]>
1 parent 8b576c3 commit 8046e4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/volatile_ptr/operations.rs

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ where
8282
/// };
8383
/// assert_eq!(pointer.read(), 42);
8484
/// ```
85+
#[must_use]
8586
pub fn read(self) -> T
8687
where
8788
T: Copy,

0 commit comments

Comments
 (0)