From 5dede6608ee399591bbf016e4f99867785f01950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 8 Dec 2023 13:55:36 +0100 Subject: [PATCH] Fix tests --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 93d055a..41cbab7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -393,7 +393,6 @@ impl<'de, const N: usize> Deserialize<'de> for Bytes { #[cfg(feature = "cbor")] mod tests { use super::*; - use heapless::consts; #[test] fn test_client_data_hash() { @@ -402,8 +401,7 @@ mod tests { 0x44, 0x45, 0x46, ]; - let client_data_hash: Bytes = - serde_cbor::de::from_mut_slice(&mut minimal).unwrap(); + let client_data_hash: Bytes<17> = serde_cbor::de::from_mut_slice(&mut minimal).unwrap(); assert_eq!(client_data_hash, b"1234567890ABCDEF"); }