Skip to content

Commit

Permalink
Improve consistency in import styles
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Jul 28, 2023
1 parent f91535d commit 56c55c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
24 changes: 10 additions & 14 deletions src/subject_name/verify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,17 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

use super::{
dns_name::{self, DnsNameRef},
ip_address::{self, IpAddrRef},
name::SubjectNameRef,
};
use crate::der::{self, FromDer};
use crate::{
cert::{Cert, EndEntityOrCa},
Error,
};
#[cfg(feature = "alloc")]
use {
alloc::vec::Vec,
dns_name::{GeneralDnsNameRef, WildcardDnsNameRef},
};
use alloc::vec::Vec;

use super::dns_name::{self, DnsNameRef};
#[cfg(feature = "alloc")]
use super::dns_name::{GeneralDnsNameRef, WildcardDnsNameRef};
use super::ip_address::{self, IpAddrRef};
use super::name::SubjectNameRef;
use crate::cert::{Cert, EndEntityOrCa};
use crate::der::{self, FromDer};
use crate::error::Error;

pub(crate) fn verify_cert_dns_name(
cert: &crate::EndEntityCert,
Expand Down
2 changes: 1 addition & 1 deletion src/verify_cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

use crate::cert::{Cert, EndEntityOrCa};
use crate::{
cert::{Cert, EndEntityOrCa},
der, signed_data, subject_name, time, CertRevocationList, Error, SignatureAlgorithm,
TrustAnchor,
};
Expand Down

0 comments on commit 56c55c8

Please sign in to comment.