Skip to content

Commit 4e836cf

Browse files
committed
Warn on unnameable types
1 parent b88328a commit 4e836cf

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/der.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use core::marker::PhantomData;
1818

1919
use crate::{Error, error::DerTypeId};
2020

21+
/// Iterator to parse a sequence of DER-encoded values of type `T`.
2122
#[derive(Debug)]
2223
pub struct DerIterator<'a, T> {
2324
reader: untrusted::Reader<'a>,

src/lib.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@
2727
//! | `aws-lc-rs` | Enable use of the aws-lc-rs crate for cryptography. Previously this feature was named `aws_lc_rs`. |
2828
2929
#![no_std]
30-
#![warn(elided_lifetimes_in_paths, unreachable_pub, clippy::use_self)]
30+
#![warn(
31+
elided_lifetimes_in_paths,
32+
unnameable_types,
33+
unreachable_pub,
34+
clippy::use_self
35+
)]
3136
#![deny(missing_docs, clippy::as_conversions)]
3237
#![allow(
3338
clippy::len_without_is_empty,
@@ -74,10 +79,11 @@ pub(crate) mod test_utils;
7479
pub use {
7580
cert::Cert,
7681
crl::{
77-
BorrowedCertRevocationList, BorrowedRevokedCert, CertRevocationList, ExpirationPolicy,
78-
RevocationCheckDepth, RevocationOptions, RevocationOptionsBuilder, RevocationReason,
79-
UnknownStatusPolicy,
82+
BorrowedCertRevocationList, BorrowedRevokedCert, CertRevocationList, CrlsRequired,
83+
ExpirationPolicy, RevocationCheckDepth, RevocationOptions, RevocationOptionsBuilder,
84+
RevocationReason, UnknownStatusPolicy,
8085
},
86+
der::DerIterator,
8187
end_entity::EndEntityCert,
8288
error::{
8389
DerTypeId, Error, InvalidNameContext, UnsupportedSignatureAlgorithmContext,
@@ -86,7 +92,7 @@ pub use {
8692
rpk_entity::RawPublicKeyEntity,
8793
trust_anchor::anchor_from_trusted_cert,
8894
verify_cert::{
89-
ExtendedKeyUsageValidator, KeyPurposeId, KeyPurposeIdIter, KeyUsage,
95+
ExtendedKeyUsageValidator, IntermediateIterator, KeyPurposeId, KeyPurposeIdIter, KeyUsage,
9096
RequiredEkuNotFoundContext, VerifiedPath,
9197
},
9298
};

0 commit comments

Comments
 (0)