]> Repositorios git - scryer-prolog.git/commitdiff
fix saftey comment
authorBennet Bleßmann <[email protected]>
Sat, 6 Jul 2024 11:06:24 +0000 (13:06 +0200)
committerBennet Bleßmann <[email protected]>
Sat, 6 Jul 2024 11:06:24 +0000 (13:06 +0200)
src/types.rs

index c83fb4830b229053d9f2ea30a130c678b7c1583d..2872f5418384989775e7e171ec66180ae8cb9dc8 100644 (file)
@@ -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::<ArenaHeader>()) }
     }
 
-    /// Safety
+    /// Safety
     /// - this UntypedArenaPtr actuall pointee type is T
     #[inline]
     pub unsafe fn as_typed_ptr<T: ArenaAllocated>(self) -> TypedArenaPtr<T> {