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"); }