Skip to content

Commit

Permalink
der: remove remaining doc(cfg(...))
Browse files Browse the repository at this point in the history
We now use `doc_auto_cfg` instead
  • Loading branch information
tarcieri committed Sep 12, 2024
1 parent c74b3ad commit 94b64df
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions der/src/reader/pem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use pem_rfc7468::Decoder;

/// `Reader` type which decodes PEM on-the-fly.
#[cfg(feature = "pem")]
#[cfg_attr(docsrs, doc(cfg(feature = "pem")))]
#[derive(Clone)]
pub struct PemReader<'i> {
/// Inner PEM decoder.
Expand All @@ -23,7 +22,6 @@ pub struct PemReader<'i> {
}

#[cfg(feature = "pem")]
#[cfg_attr(docsrs, doc(cfg(feature = "pem")))]
impl<'i> PemReader<'i> {
/// Create a new PEM reader which decodes data on-the-fly.
///
Expand All @@ -48,7 +46,6 @@ impl<'i> PemReader<'i> {
}

#[cfg(feature = "pem")]
#[cfg_attr(docsrs, doc(cfg(feature = "pem")))]
impl<'i> Reader<'i> for PemReader<'i> {
fn encoding_rules(&self) -> EncodingRules {
self.encoding_rules
Expand Down

0 comments on commit 94b64df

Please sign in to comment.