Skip to content

Commit

Permalink
x509-cert: extraneous PhantomData in TbsCertificate (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo authored Apr 20, 2023
1 parent f570f59 commit e74ef5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions x509-cert/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,6 @@ where
// https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.8
issuer_unique_id: None,
subject_unique_id: None,

_profile: Default::default(),
};

let extensions = profile.build_extensions(
Expand Down
4 changes: 1 addition & 3 deletions x509-cert/src/certificate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use crate::{name::Name, serial_number::SerialNumber, time::Validity};
use alloc::vec::Vec;
use const_oid::AssociatedOid;
use core::{cmp::Ordering, fmt::Debug, marker::PhantomData};
use core::{cmp::Ordering, fmt::Debug};
use der::asn1::BitString;
use der::{Decode, Enumerated, Error, ErrorKind, Sequence, Tag, ValueOrd};
use spki::{AlgorithmIdentifierOwned, SubjectPublicKeyInfoOwned};
Expand Down Expand Up @@ -136,8 +136,6 @@ pub struct TbsCertificateInner<P: Profile = Rfc5280> {

#[asn1(context_specific = "3", tag_mode = "EXPLICIT", optional = "true")]
pub extensions: Option<crate::ext::Extensions>,

pub(crate) _profile: PhantomData<P>,
}

impl<P: Profile> TbsCertificateInner<P> {
Expand Down

0 comments on commit e74ef5e

Please sign in to comment.