Skip to content

Commit

Permalink
fix: add #[must_use] to VolatilePtr::as_raw_ptr
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 8046e4d commit da0f987
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 @@ -155,6 +155,7 @@ where
///
/// assert_eq!(unsafe { *unwrapped }, 50); // non volatile access, be careful!
/// ```
#[must_use]
pub fn as_raw_ptr(self) -> NonNull<T> {
self.pointer
}
Expand Down

0 comments on commit da0f987

Please sign in to comment.