From b6dca43f5eb278296cf45d29f7cfd6357a5458f2 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Tue, 28 Aug 2018 17:50:23 +0200 Subject: [PATCH] Formatting --- src/lib.rs | 13 ++++++++----- src/tests.rs | 4 ++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d3ae093..2a5aed2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,8 @@ -#![deny(missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts, - trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces, - unused_qualifications)] +#![deny( + missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts, + trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces, + unused_qualifications +)] //! `merkle_sigs` implements Merkle signatures in Rust. @@ -13,8 +15,9 @@ mod signatures; pub use merkle::Proof; pub use lamport_sigs::PublicKey; -pub use signatures::{sign_data_vec, verify_data_vec_signature, MerklePublicKey, MerkleSignature, - MerkleSignedData}; +pub use signatures::{ + sign_data_vec, verify_data_vec_signature, MerklePublicKey, MerkleSignature, MerkleSignedData, +}; #[cfg(test)] mod tests; diff --git a/src/tests.rs b/src/tests.rs index 6546196..2fa55ec 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -1,9 +1,9 @@ #![cfg(test)] -use Proof; -use PublicKey; use ring::digest::{Algorithm, SHA512}; use signatures::{sign_data_vec, verify_data_vec_signature, MerklePublicKey}; use std::collections::HashSet; +use Proof; +use PublicKey; #[allow(non_upper_case_globals)] static digest: &'static Algorithm = &SHA512;