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