Skip to content

Commit

Permalink
Remove extern crate declarations from doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte committed Jan 1, 2021
1 parent 9c78a72 commit 7e5f1ea
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions openssl/src/envelope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
//! # Example
//!
//! ```rust
//!
//! extern crate openssl;
//!
//! use openssl::rsa::Rsa;
//! use openssl::envelope::Seal;
//! use openssl::pkey::PKey;
Expand Down
3 changes: 0 additions & 3 deletions openssl/src/pkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
//! Generate a 2048-bit RSA public/private key pair and print the public key.
//!
//! ```rust
//!
//! extern crate openssl;
//!
//! use openssl::rsa::Rsa;
//! use openssl::pkey::PKey;
//! use std::str;
Expand Down
3 changes: 0 additions & 3 deletions openssl/src/rsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
//! Generate a 2048-bit RSA key pair and use the public key to encrypt some data.
//!
//! ```rust
//!
//! extern crate openssl;
//!
//! use openssl::rsa::{Rsa, Padding};
//!
//! fn main() {
Expand Down
6 changes: 0 additions & 6 deletions openssl/src/sha.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
//! you can create a hasher that you can repeatedly update to add bytes to.
//!
//! ```rust
//! extern crate openssl;
//! extern crate hex;
//!
//! use openssl::sha;
//!
//! fn main() {
Expand All @@ -35,9 +32,6 @@
//! to the algorithm you want to use.
//!
//! ```rust
//! extern crate openssl;
//! extern crate hex;
//!
//! use openssl::sha::sha256;
//!
//! fn main() {
Expand Down
2 changes: 0 additions & 2 deletions openssl/src/x509/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
//! # Example
//!
//! ```rust
//! extern crate openssl;
//!
//! use openssl::x509::extension::BasicConstraints;
//! use openssl::x509::X509Extension;
//!
Expand Down
3 changes: 0 additions & 3 deletions openssl/src/x509/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
//! # Example
//!
//! ```rust
//!
//! extern crate openssl;
//!
//! use openssl::x509::store::{X509StoreBuilder, X509Store};
//! use openssl::x509::{X509, X509Name};
//! use openssl::pkey::PKey;
Expand Down

0 comments on commit 7e5f1ea

Please sign in to comment.