Skip to content

Commit

Permalink
fix: add #[must_use] to VolatilePtr::read
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Kröning <[email protected]>
  • Loading branch information
mkroening committed Apr 25, 2024
1 parent 8b576c3 commit 8046e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/volatile_ptr/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ where
/// };
/// assert_eq!(pointer.read(), 42);
/// ```
#[must_use]
pub fn read(self) -> T
where
T: Copy,
Expand Down

0 comments on commit 8046e4d

Please sign in to comment.