Skip to content

Commit da0f987

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

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
@@ -155,6 +155,7 @@ where
155155
///
156156
/// assert_eq!(unsafe { *unwrapped }, 50); // non volatile access, be careful!
157157
/// ```
158+
#[must_use]
158159
pub fn as_raw_ptr(self) -> NonNull<T> {
159160
self.pointer
160161
}

0 commit comments

Comments
 (0)