From 9a60461266984cfa5537b633a7ff804bd2db18b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 25 Feb 2024 13:36:58 +0100 Subject: [PATCH] Fix the test --- src/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage.rs b/src/storage.rs index 9b2f69a..7ae5759 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -88,7 +88,7 @@ mod tests { ciphertext: TEST_CIPHERTEXT.into(), }; let s = super::encode(TEST_IKM_ID, &data); - let (id, decoded_data) = super::decode(TEST_STR).unwrap(); + let (id, decoded_data) = super::decode(&s).unwrap(); assert_eq!(id, TEST_IKM_ID); assert_eq!(decoded_data.nonce, data.nonce); assert_eq!(decoded_data.ciphertext, data.ciphertext);