From 5739579dc77c96f26fdca0ec39eed3f06d9af5dd Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Tue, 12 Sep 2023 11:08:29 +0200 Subject: [PATCH] Fix clippy lint: useless-vec Signed-off-by: Wiktor Kwapisiewicz --- cryptoki/tests/basic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptoki/tests/basic.rs b/cryptoki/tests/basic.rs index 3027365..3c363a7 100644 --- a/cryptoki/tests/basic.rs +++ b/cryptoki/tests/basic.rs @@ -954,7 +954,7 @@ fn sha256_digest() -> TestResult { // data to digest let data = vec![0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF]; - let want = vec![ + let want = [ 0x17, 0x22, 0x6b, 0x1f, 0x68, 0xae, 0xba, 0xcd, 0xef, 0x07, 0x46, 0x45, 0x0f, 0x64, 0x28, 0x74, 0x63, 0x8b, 0x29, 0x57, 0x07, 0xef, 0x73, 0xfb, 0x2c, 0x6b, 0xb7, 0xf8, 0x8e, 0x89, 0x92, 0x9f,