From d01f11a33d791e0ded23959592579e65b253f385 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Fri, 19 Jan 2024 13:29:03 -0700 Subject: [PATCH] Fix unused import warnings Newer versions of rustc report these. They were previously ignored because they were `pub use`, but inside of a non-`pub` module. --- src/pkcs1v15/signature.rs | 15 ++++++--------- src/pss/signature.rs | 17 +++++++---------- 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/src/pkcs1v15/signature.rs b/src/pkcs1v15/signature.rs index a640da32..a07b6468 100644 --- a/src/pkcs1v15/signature.rs +++ b/src/pkcs1v15/signature.rs @@ -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]. /// diff --git a/src/pss/signature.rs b/src/pss/signature.rs index fa47d6d9..031e2201 100644 --- a/src/pss/signature.rs +++ b/src/pss/signature.rs @@ -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)]