Skip to content

Commit

Permalink
shut clippy up
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Dec 2, 2022
1 parent f961497 commit 1e6eb6c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/context.rs
Expand Up @@ -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> {}
Expand Down

0 comments on commit 1e6eb6c

Please sign in to comment.