From a148821c769c86b2ef61fe6343fc8a5526fe08b4 Mon Sep 17 00:00:00 2001 From: Carl Wallace Date: Thu, 7 Sep 2023 12:44:15 -0400 Subject: [PATCH] address a few review comments (several lifetime names, a stale TODO) --- pkcs12/src/lib.rs | 2 -- pkcs12/src/safe_bag.rs | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkcs12/src/lib.rs b/pkcs12/src/lib.rs index 8add4a9e2..49baa6a6c 100644 --- a/pkcs12/src/lib.rs +++ b/pkcs12/src/lib.rs @@ -1,5 +1,3 @@ -//! TODO: complete PKCS#12 crate - #![no_std] #![cfg_attr(docsrs, feature(doc_auto_cfg))] #![doc = include_str!("../README.md")] diff --git a/pkcs12/src/safe_bag.rs b/pkcs12/src/safe_bag.rs index 0a29a43de..0e5fd02a3 100644 --- a/pkcs12/src/safe_bag.rs +++ b/pkcs12/src/safe_bag.rs @@ -36,8 +36,8 @@ pub struct SafeBag { pub bag_attributes: Option, } -impl<'__der_lifetime> ::der::DecodeValue<'__der_lifetime> for SafeBag { - fn decode_value>( +impl<'a> ::der::DecodeValue<'a> for SafeBag { + fn decode_value>( reader: &mut R, header: ::der::Header, ) -> ::der::Result { @@ -88,7 +88,7 @@ impl ::der::EncodeValue for SafeBag { Ok(()) } } -impl<'__der_lifetime> ::der::Sequence<'__der_lifetime> for SafeBag {} +impl<'a> ::der::Sequence<'a> for SafeBag {} /// Version for the PrivateKeyInfo structure as defined in [RFC 5208 Section 5]. ///