From bb40d4e7c78938640fe4b8703ed43d5a407e3810 Mon Sep 17 00:00:00 2001 From: Akhil Velagapudi <4@4khil.com> Date: Mon, 8 Apr 2024 09:14:45 -0700 Subject: [PATCH] Add test for Digest::clone Signed-off-by: Akhil Velagapudi <4@4khil.com> --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a42ad77..4ab3a89 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -84,6 +84,8 @@ mod test { #[test] fn test_clone() { const CRC: Crc = Crc::::new(&CRC_32_ISCSI); - let _crc = CRC.clone(); + let crc = CRC.clone(); + let digest = crc.digest(); + let _digest = digest.clone(); } }