From c297b4ee8d619d903b1b1673e47a8df25637d01b Mon Sep 17 00:00:00 2001 From: Henrik Tjäder Date: Sat, 25 Dec 2021 13:17:16 +0100 Subject: Clippy lints --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 5fe35a95..a1a911ae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -95,12 +95,20 @@ impl RacyCell { } /// Get `*mut T` + /// + /// # Safety + /// + /// See documentation notes for [`RacyCell`] #[inline(always)] pub unsafe fn get_mut(&self) -> *mut T { self.0.get() } /// Get `*const T` + /// + /// # Safety + /// + /// See documentation notes for [`RacyCell`] #[inline(always)] pub unsafe fn get(&self) -> *const T { self.0.get() -- cgit v1.2.3