shut clippy up

This commit is contained in:
Andrew Poelstra 2022-12-02 13:23:16 +00:00
parent f961497e69
commit 1e6eb6cb4d
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 5 additions and 0 deletions

View File

@ -320,6 +320,11 @@ unsafe impl<'buf> Context for AllPreallocated<'buf> {
/// Trait marking that a particular context object internally points to
/// memory that must outlive `'a`
///
/// # Safety
/// This trait is used internally to gate which context markers can safely
/// be used with the `preallocated_gen_new` function. Do not implement it
/// on your own structures.
pub unsafe trait PreallocatedContext<'a> {}
unsafe impl<'buf> PreallocatedContext<'buf> for AllPreallocated<'buf> {}