From 5fc81dd6c848988dafec655cac78857157512c1d Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Thu, 5 Apr 2018 22:39:07 -0600 Subject: [PATCH] Fix the nightly build Nightly uses a different (but backward compatible) version of rustfmt. --- src/accountant.rs | 8 ++++---- src/accountant_skel.rs | 2 +- src/ecdsa.rs | 4 ++-- src/lib.rs | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/accountant.rs b/src/accountant.rs index 5f599bf93f..7c8a5e5c49 100644 --- a/src/accountant.rs +++ b/src/accountant.rs @@ -259,9 +259,9 @@ impl Accountant { #[cfg(test)] mod tests { use super::*; - use signature::KeyPairUtil; - use hash::hash; use bincode::serialize; + use hash::hash; + use signature::KeyPairUtil; #[test] fn test_accountant() { @@ -412,9 +412,9 @@ mod bench { extern crate test; use self::test::Bencher; use accountant::*; - use signature::KeyPairUtil; - use hash::hash; use bincode::serialize; + use hash::hash; + use signature::KeyPairUtil; #[bench] fn process_verified_event_bench(bencher: &mut Bencher) { diff --git a/src/accountant_skel.rs b/src/accountant_skel.rs index d827b2d5ad..e45efb83e1 100644 --- a/src/accountant_skel.rs +++ b/src/accountant_skel.rs @@ -4,9 +4,9 @@ use accountant::Accountant; use bincode::{deserialize, serialize}; +use ecdsa; use entry::Entry; use event::Event; -use ecdsa; use hash::Hash; use historian::Historian; use packet; diff --git a/src/ecdsa.rs b/src/ecdsa.rs index f3ede709b9..9594d01676 100644 --- a/src/ecdsa.rs +++ b/src/ecdsa.rs @@ -8,9 +8,9 @@ use std::mem::size_of; #[cfg(not(feature = "cuda"))] use rayon::prelude::*; #[cfg(not(feature = "cuda"))] -use untrusted; -#[cfg(not(feature = "cuda"))] use ring::signature; +#[cfg(not(feature = "cuda"))] +use untrusted; // Shared imports use packet::{Packet, SharedPackets}; diff --git a/src/lib.rs b/src/lib.rs index 1c8ed2ebad..706e61fb87 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,9 +2,9 @@ pub mod accountant; pub mod accountant_skel; pub mod accountant_stub; +pub mod ecdsa; pub mod entry; pub mod event; -pub mod ecdsa; pub mod hash; pub mod historian; pub mod ledger;