Skip to content

Commit

Permalink
Fix unused import warnings
Browse files Browse the repository at this point in the history
Newer versions of rustc report these. They were previously ignored
because they were `pub use`, but inside of a non-`pub` module.
  • Loading branch information
tarcieri committed Jan 19, 2024
1 parent 1720215 commit d01f11a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
15 changes: 6 additions & 9 deletions src/pkcs1v15/signature.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
pub use ::signature::{
hazmat::{PrehashSigner, PrehashVerifier},
DigestSigner, DigestVerifier, Error, Keypair, RandomizedDigestSigner, RandomizedSigner, Result,
SignatureEncoding, Signer, Verifier,
};
use spki::{
der::{asn1::BitString, Result as DerResult},
SignatureBitStringEncoding,
};
//! `RSASSA-PKCS1-v1_5` signatures.
use crate::algorithms::pad::uint_to_be_pad;
use ::signature::SignatureEncoding;
use alloc::{boxed::Box, string::ToString};
use core::fmt::{Debug, Display, Formatter, LowerHex, UpperHex};
use num_bigint::BigUint;
use spki::{
der::{asn1::BitString, Result as DerResult},
SignatureBitStringEncoding,
};

/// `RSASSA-PKCS1-v1_5` signatures as described in [RFC8017 § 8.2].
///
Expand Down
17 changes: 7 additions & 10 deletions src/pss/signature.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
pub use ::signature::{
hazmat::{PrehashSigner, PrehashVerifier},
DigestSigner, DigestVerifier, Error, Keypair, RandomizedDigestSigner, RandomizedSigner, Result,
SignatureEncoding, Signer, Verifier,
};
use spki::{
der::{asn1::BitString, Result as DerResult},
SignatureBitStringEncoding,
};
//! `RSASSA-PSS` signatures.
use crate::algorithms::pad::uint_to_be_pad;
use ::signature::SignatureEncoding;
use alloc::{boxed::Box, string::ToString};
use core::fmt::{Debug, Display, Formatter, LowerHex, UpperHex};
use num_bigint::BigUint;
use spki::{
der::{asn1::BitString, Result as DerResult},
SignatureBitStringEncoding,
};

/// RSASSA-PSS signatures as described in [RFC8017 § 8.1].
/// `RSASSA-PSS` signatures as described in [RFC8017 § 8.1].
///
/// [RFC8017 § 8.1]: https://datatracker.ietf.org/doc/html/rfc8017#section-8.1
#[derive(Clone, PartialEq, Eq)]
Expand Down

0 comments on commit d01f11a

Please sign in to comment.