From 2d6afdabc520b04cdaa1daf59a4314259465c3c8 Mon Sep 17 00:00:00 2001 From: Revertron Date: Sun, 30 May 2021 14:52:04 +0200 Subject: [PATCH] Fixed tests. --- src/crypto/chacha.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/chacha.rs b/src/crypto/chacha.rs index 0ae736b..3477457 100644 --- a/src/crypto/chacha.rs +++ b/src/crypto/chacha.rs @@ -58,7 +58,7 @@ mod tests { let bytes2 = chacha2.decrypt(&bytes1).unwrap(); assert_eq!(String::from_utf8(bytes2).unwrap(), "TEST"); - let bytes2 = chacha2.encrypt(b"TEST"); + let bytes2 = chacha2.encrypt(b"TEST").unwrap(); assert_eq!(bytes1, bytes2); }