@@ -41,18 +41,6 @@ use std::net::IpAddr;
4141use std:: net:: { Ipv4Addr , Ipv6Addr } ;
4242use std:: ops:: Deref ;
4343
44- #[ cfg( feature = "pem" ) ]
45- use pem:: Pem ;
46- use pki_types:: CertificateDer ;
47- use time:: { OffsetDateTime , Time } ;
48- use yasna:: models:: ObjectIdentifier ;
49- use yasna:: models:: { GeneralizedTime , UTCTime } ;
50- use yasna:: tags:: { TAG_BMPSTRING , TAG_TELETEXSTRING , TAG_UNIVERSALSTRING } ;
51- use yasna:: DERWriter ;
52- use yasna:: Tag ;
53-
54- use crate :: string:: { BmpString , Ia5String , PrintableString , TeletexString , UniversalString } ;
55-
5644pub use certificate:: {
5745 date_time_ymd, Attribute , BasicConstraints , Certificate , CertificateParams , CidrSubnet ,
5846 CustomExtension , DnType , ExtendedKeyUsagePurpose , GeneralSubtree , IsCa , NameConstraints ,
@@ -65,14 +53,22 @@ pub use csr::{CertificateSigningRequest, CertificateSigningRequestParams, Public
6553pub use error:: { Error , InvalidAsn1String } ;
6654#[ cfg( feature = "crypto" ) ]
6755pub use key_pair:: KeyPair ;
68- pub use key_pair:: PublicKeyData ;
6956#[ cfg( all( feature = "crypto" , feature = "aws_lc_rs" ) ) ]
7057pub use key_pair:: RsaKeySize ;
71- pub use key_pair:: { SigningKey , SubjectPublicKeyInfo } ;
58+ pub use key_pair:: { PublicKeyData , SigningKey , SubjectPublicKeyInfo } ;
59+ #[ cfg( feature = "pem" ) ]
60+ use pem:: Pem ;
61+ use pki_types:: CertificateDer ;
7262#[ cfg( feature = "crypto" ) ]
7363use ring_like:: digest;
7464pub use sign_algo:: algo:: * ;
7565pub use sign_algo:: SignatureAlgorithm ;
66+ use time:: { OffsetDateTime , Time } ;
67+ use yasna:: models:: { GeneralizedTime , ObjectIdentifier , UTCTime } ;
68+ use yasna:: tags:: { TAG_BMPSTRING , TAG_TELETEXSTRING , TAG_UNIVERSALSTRING } ;
69+ use yasna:: { DERWriter , Tag } ;
70+
71+ use crate :: string:: { BmpString , Ia5String , PrintableString , TeletexString , UniversalString } ;
7672
7773mod certificate;
7874mod crl;
@@ -987,10 +983,10 @@ mod tests {
987983
988984 #[ cfg( feature = "x509-parser" ) ]
989985 mod test_ip_address_from_octets {
990- use super :: super :: ip_addr_from_octets;
991- use super :: super :: Error ;
992986 use std:: net:: IpAddr ;
993987
988+ use super :: super :: { ip_addr_from_octets, Error } ;
989+
994990 #[ test]
995991 fn ipv4 ( ) {
996992 let octets = [ 10 , 20 , 30 , 40 ] ;
@@ -1035,10 +1031,12 @@ mod tests {
10351031
10361032 #[ cfg( feature = "x509-parser" ) ]
10371033 mod test_san_type_from_general_name {
1038- use crate :: SanType ;
10391034 use std:: net:: IpAddr ;
1035+
10401036 use x509_parser:: extensions:: GeneralName ;
10411037
1038+ use crate :: SanType ;
1039+
10421040 #[ test]
10431041 fn with_ipv4 ( ) {
10441042 let octets = [ 1 , 2 , 3 , 4 ] ;
0 commit comments