From 9e7d41025ae73e7c75a2c1bdf4e92a1049f39abb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Sat, 6 Jul 2024 13:06:24 +0200 Subject: [PATCH] fix saftey comment --- src/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.rs b/src/types.rs index c83fb483..2872f541 100644 --- a/src/types.rs +++ b/src/types.rs @@ -188,7 +188,7 @@ pub enum TrailRef { BlackboardOffset(Atom, HeapCellValue), // key atom, key value } -#[allow(clippy::enum_variant_names)] +#[allow(clippy::enum_variant_names)] // allow the common "Trailed" prefix #[derive(BitfieldSpecifier, Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] #[bits = 6] pub(crate) enum TrailEntryTag { @@ -705,7 +705,7 @@ impl UntypedArenaPtr { unsafe { self.get_ptr().add(mem::size_of::()) } } - /// Safety + /// # Safety /// - this UntypedArenaPtr actuall pointee type is T #[inline] pub unsafe fn as_typed_ptr(self) -> TypedArenaPtr { -- 2.54.0