Skip to content

Commit

Permalink
Add required 'static lifetime bound (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
VersBinarii authored Jan 9, 2022
1 parent 4c1d9da commit 4e5ca4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blake2/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,15 @@ macro_rules! blake2_mac_impl {

impl<OutSize> OutputSizeUser for $name<OutSize>
where
OutSize: ArrayLength<u8> + IsLessOrEqual<$max_size>,
OutSize: ArrayLength<u8> + IsLessOrEqual<$max_size> + 'static,
LeEq<OutSize, $max_size>: NonZero,
{
type OutputSize = OutSize;
}

impl<OutSize> FixedOutput for $name<OutSize>
where
OutSize: ArrayLength<u8> + IsLessOrEqual<$max_size>,
OutSize: ArrayLength<u8> + IsLessOrEqual<$max_size> + 'static,
LeEq<OutSize, $max_size>: NonZero,
{
#[inline]
Expand Down

0 comments on commit 4e5ca4c

Please sign in to comment.