Skip to content

Commit 97051a5

Browse files
committed
x509-cert: Crl are now owned types
1 parent c06c01f commit 97051a5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

x509-cert/src/ext/pkix/crl.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub use dp::IssuingDistributionPoint;
1111

1212
use alloc::vec::Vec;
1313

14-
use der::{asn1::UIntRef, Enumerated};
14+
use der::{asn1::UInt, Enumerated};
1515

1616
/// CrlNumber as defined in [RFC 5280 Section 5.2.3].
1717
///
@@ -20,14 +20,14 @@ use der::{asn1::UIntRef, Enumerated};
2020
/// ```
2121
///
2222
/// [RFC 5280 Section 5.2.3]: https://datatracker.ietf.org/doc/html/rfc5280#section-5.2.3
23-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
24-
pub struct CrlNumber<'a>(pub UIntRef<'a>);
23+
#[derive(Clone, Debug, PartialEq, Eq)]
24+
pub struct CrlNumber(pub UInt);
2525

26-
impl<'a> AssociatedOid for CrlNumber<'a> {
26+
impl AssociatedOid for CrlNumber {
2727
const OID: ObjectIdentifier = ID_CE_CRL_NUMBER;
2828
}
2929

30-
impl_newtype!(CrlNumber<'a>, UIntRef<'a>);
30+
impl_newtype!(CrlNumber, UInt);
3131

3232
/// BaseCRLNumber as defined in [RFC 5280 Section 5.2.4].
3333
///
@@ -36,14 +36,14 @@ impl_newtype!(CrlNumber<'a>, UIntRef<'a>);
3636
/// ```
3737
///
3838
/// [RFC 5280 Section 5.2.4]: https://datatracker.ietf.org/doc/html/rfc5280#section-5.2.4
39-
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
40-
pub struct BaseCrlNumber<'a>(pub UIntRef<'a>);
39+
#[derive(Clone, Debug, PartialEq, Eq)]
40+
pub struct BaseCrlNumber(pub UInt);
4141

42-
impl<'a> AssociatedOid for BaseCrlNumber<'a> {
42+
impl AssociatedOid for BaseCrlNumber {
4343
const OID: ObjectIdentifier = ID_CE_DELTA_CRL_INDICATOR;
4444
}
4545

46-
impl_newtype!(BaseCrlNumber<'a>, UIntRef<'a>);
46+
impl_newtype!(BaseCrlNumber, UInt);
4747

4848
/// CrlDistributionPoints as defined in [RFC 5280 Section 4.2.1.13].
4949
///

0 commit comments

Comments
 (0)