From 4e5ca4cc5523e8b044cdcdf1cd52e08d564ffc0f Mon Sep 17 00:00:00 2001 From: VersBinarii Date: Sun, 9 Jan 2022 03:49:54 +0100 Subject: [PATCH] Add required 'static lifetime bound (#347) --- 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]