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