Skip to content

Commit

Permalink
fixup: cleanup extern crates
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Dec 9, 2022
1 parent fa9e16e commit ce3b8d3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
8 changes: 1 addition & 7 deletions benches/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@

//! Benchmark the Diffie-Hellman operation.

#[macro_use]
extern crate criterion;
extern crate curve25519_dalek;
extern crate rand_core;
extern crate x25519_dalek;

use criterion::Criterion;
use criterion::{criterion_group, criterion_main, Criterion};

use rand_core::OsRng;

Expand Down
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,6 @@
//!
//! [crypto_box]: https://github.com/RustCrypto/AEADs/tree/master/crypto_box

extern crate curve25519_dalek;

extern crate rand_core;

extern crate zeroize;

mod x25519;

pub use crate::x25519::*;
2 changes: 0 additions & 2 deletions src/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,6 @@ fn clamp_scalar(mut scalar: [u8; 32]) -> Scalar {
///
/// # Example
/// ```
/// # extern crate rand_core;
/// #
/// use rand_core::OsRng;
/// use rand_core::RngCore;
///
Expand Down

0 comments on commit ce3b8d3

Please sign in to comment.