Skip to content

Commit

Permalink
Remove superfluous dependencies on libstd.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Dec 27, 2018
1 parent 9859d62 commit b486965
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/c.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ macro_rules! define_metrics_tests {
#[cfg(test)]
#[test]
fn $test_c_metrics() {
use std::mem;
use core::mem;

let c_align = unsafe { $c_align };
let c_size = unsafe { $c_size };
Expand Down
2 changes: 1 addition & 1 deletion src/ec/curve25519/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use crate::{
bssl, error,
limb::{Limb, LIMB_BITS},
};
use std::marker::PhantomData;
use core::marker::PhantomData;

// Elem<T>` is `fe` in curve25519/internal.h.
// Elem<L> is `fe_loose` in curve25519/internal.h.
Expand Down
3 changes: 0 additions & 3 deletions src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,6 @@ use crate::{cpu, ec, error, sealed};
use core;
use untrusted;

#[cfg(feature = "use_heap")]
use std;

pub use crate::ec::{
curve25519::ed25519::{
signing::KeyPair as Ed25519KeyPair,
Expand Down

0 comments on commit b486965

Please sign in to comment.