From 572d2d0e67b117fc1e215a334cc2c994cc2a625e Mon Sep 17 00:00:00 2001 From: Bernd Krietenstein Date: Wed, 6 Dec 2023 08:14:57 +0100 Subject: [PATCH] Removed debugging code. --- der/src/asn1/octet_string.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/der/src/asn1/octet_string.rs b/der/src/asn1/octet_string.rs index f44df8a57..12a1e0e4d 100644 --- a/der/src/asn1/octet_string.rs +++ b/der/src/asn1/octet_string.rs @@ -244,15 +244,13 @@ mod bytes { #[cfg(test)] #[allow(clippy::unwrap_used)] mod tests { - use crate::asn1::{OctetString, OctetStringRef, PrintableStringRef}; + use crate::asn1::{OctetStringRef, PrintableStringRef}; #[test] fn octet_string_decode_into() { // PrintableString "hi" let der = b"\x13\x02\x68\x69"; let oct = OctetStringRef::new(der).unwrap(); - let oct_owned = OctetString::new("Halllo".as_bytes()).unwrap(); - assert!(!oct_owned.is_empty()); let res = oct.decode_into::>().unwrap(); assert_eq!(AsRef::::as_ref(&res), "hi");