From 77351f461ff0bec138ada9482ea54e72765ffa3f Mon Sep 17 00:00:00 2001 From: Joe Birr-Pixton Date: Wed, 25 Sep 2024 13:13:13 +0100 Subject: [PATCH] rustfmt to reformat imports (with rustls's config) --- src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4aaa579..858e996 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,6 +60,12 @@ extern crate std; mod tests; mod pemfile; +#[cfg(feature = "std")] +use core::iter; +/// --- Legacy APIs: +#[cfg(feature = "std")] +use std::io; + #[cfg(feature = "std")] pub use pemfile::{read_all, read_one}; pub use pemfile::{read_one_from_slice, Error, Item}; @@ -71,12 +77,6 @@ use pki_types::{ PrivatePkcs8KeyDer, PrivateSec1KeyDer, SubjectPublicKeyInfoDer, }; -#[cfg(feature = "std")] -use core::iter; -/// --- Legacy APIs: -#[cfg(feature = "std")] -use std::io; - /// Return an iterator over certificates from `rd`. /// /// Filters out any PEM sections that are not certificates and yields errors if a problem