From 756ef5ff7ca53f609858d8215c3254a4116634c7 Mon Sep 17 00:00:00 2001 From: dishmaker <141624503+dishmaker@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:10:10 +0200 Subject: [PATCH] fix x509-cert --- x509-cert/tests/certificate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x509-cert/tests/certificate.rs b/x509-cert/tests/certificate.rs index c710b450c..aeb87693c 100644 --- a/x509-cert/tests/certificate.rs +++ b/x509-cert/tests/certificate.rs @@ -92,7 +92,7 @@ impl<'a> DecodeValue<'a> for DeferDecodeTbsCertificate<'a> { header: Header, ) -> der::Result> { reader.read_nested(header.length, |reader| { - let version = ContextSpecificExplicit::decode_explicit(reader, ::der::TagNumber(0))? + let version = ContextSpecificExplicit::<0, u8>::decode_skipping(reader)? .map(|cs| cs.value) .unwrap_or_else(Default::default);