Skip to content

Commit 1e6eb6c

Browse files
committed
shut clippy up
1 parent f961497 commit 1e6eb6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/context.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ unsafe impl<'buf> Context for AllPreallocated<'buf> {
320320

321321
/// Trait marking that a particular context object internally points to
322322
/// memory that must outlive `'a`
323+
///
324+
/// # Safety
325+
/// This trait is used internally to gate which context markers can safely
326+
/// be used with the `preallocated_gen_new` function. Do not implement it
327+
/// on your own structures.
323328
pub unsafe trait PreallocatedContext<'a> {}
324329

325330
unsafe impl<'buf> PreallocatedContext<'buf> for AllPreallocated<'buf> {}

0 commit comments

Comments
 (0)