From a31cc1fb9a1b6bb05f491641668874e14e66a559 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Sun, 17 Mar 2024 20:31:42 -0700 Subject: [PATCH] blake2: move off deprecated methods after hybrid-array upgrade --- blake2/tests/mac.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blake2/tests/mac.rs b/blake2/tests/mac.rs index 75710284..7a166a04 100644 --- a/blake2/tests/mac.rs +++ b/blake2/tests/mac.rs @@ -12,7 +12,7 @@ fn blake2b_new_test() { fn run(key: &[u8]) { const DATA: &[u8] = &[42; 300]; - let res1 = T::new(Array::from_slice(key)) + let res1 = T::new(&Array::try_from(key).unwrap()) .chain_update(DATA) .finalize() .into_bytes();