From ad33c2ee4f0d4ed0d166d80cd3f8aae64ca3adca Mon Sep 17 00:00:00 2001 From: VersBinarii Date: Fri, 7 Jan 2022 17:11:07 +0100 Subject: [PATCH] Add required 'static lifetime bound This seems to trickle from the crypto-common OutputSizeUser trait --- blake2/src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blake2/src/macros.rs b/blake2/src/macros.rs index ece46e71..ef3e0299 100644 --- a/blake2/src/macros.rs +++ b/blake2/src/macros.rs @@ -358,7 +358,7 @@ macro_rules! blake2_mac_impl { impl OutputSizeUser for $name where - OutSize: ArrayLength + IsLessOrEqual<$max_size>, + OutSize: ArrayLength + IsLessOrEqual<$max_size> + 'static, LeEq: NonZero, { type OutputSize = OutSize; @@ -366,7 +366,7 @@ macro_rules! blake2_mac_impl { impl FixedOutput for $name where - OutSize: ArrayLength + IsLessOrEqual<$max_size>, + OutSize: ArrayLength + IsLessOrEqual<$max_size> + 'static, LeEq: NonZero, { #[inline]