Skip to content

Commit

Permalink
switch from std::prelude to core::prelude
Browse files Browse the repository at this point in the history
to make all non-core imports explicit
  • Loading branch information
japaric authored and djc committed Nov 10, 2023
1 parent 4cade3f commit 2c2f1ab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
unused_extern_crates,
unused_qualifications
)]
#![cfg_attr(not(test), no_std)]

extern crate alloc;
#[cfg(not(test))]
extern crate std;

#[cfg(test)]
mod tests;
Expand All @@ -53,9 +58,9 @@ use pki_types::{
PrivateSec1KeyDer,
};

use core::iter;
/// --- Legacy APIs:
use std::io;
use std::iter;

/// Return an iterator over certificates from `rd`.
///
Expand Down
6 changes: 5 additions & 1 deletion src/pemfile.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
use alloc::borrow::ToOwned;
use alloc::format;
use alloc::string::String;
use alloc::vec::Vec;
use core::iter;
use std::io::{self, ErrorKind};
use std::iter;

use pki_types::{
CertificateDer, CertificateRevocationListDer, PrivatePkcs1KeyDer, PrivatePkcs8KeyDer,
Expand Down

0 comments on commit 2c2f1ab

Please sign in to comment.