Remove unused pairing import.

Also use the new `Iterator::flatten`.
This commit is contained in:
Andreas Fackler 2018-10-09 10:56:00 +02:00 committed by Andreas Fackler
parent 520083de2e
commit 7002dad54c
11 changed files with 1 additions and 11 deletions

View File

@ -9,7 +9,6 @@ extern crate env_logger;
extern crate hbbft;
#[macro_use]
extern crate log;
extern crate pairing;
extern crate serde;
extern crate threshold_crypto as crypto;

View File

@ -4,7 +4,6 @@ extern crate docopt;
extern crate env_logger;
extern crate hbbft;
extern crate itertools;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate rand_derive;

View File

@ -48,7 +48,7 @@ impl<C, N: NodeIdT + Rand> Batch<C, N> {
where
&'a C: IntoIterator,
{
self.contributions.values().flat_map(|item| item)
self.contributions.values().flatten()
}
/// Returns an iterator over all transactions included in the batch. Consumes the batch.

View File

@ -18,7 +18,6 @@ extern crate env_logger;
extern crate hbbft;
#[macro_use]
extern crate log;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate serde_derive;

View File

@ -5,7 +5,6 @@ extern crate hbbft;
#[macro_use]
extern crate log;
extern crate env_logger;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate serde_derive;

View File

@ -5,7 +5,6 @@ extern crate env_logger;
extern crate hbbft;
#[macro_use]
extern crate log;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate serde_derive;

View File

@ -6,7 +6,6 @@ extern crate itertools;
#[macro_use]
extern crate log;
extern crate env_logger;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate serde_derive;

View File

@ -7,7 +7,6 @@ extern crate itertools;
#[macro_use]
extern crate log;
extern crate env_logger;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate rand_derive;

View File

@ -6,7 +6,6 @@ extern crate hbbft;
extern crate itertools;
#[macro_use]
extern crate log;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate serde_derive;

View File

@ -5,7 +5,6 @@ extern crate env_logger;
extern crate hbbft;
#[macro_use]
extern crate log;
extern crate pairing;
extern crate rand;
#[macro_use]
extern crate serde_derive;

View File

@ -3,7 +3,6 @@
extern crate env_logger;
extern crate hbbft;
extern crate pairing;
extern crate rand;
extern crate threshold_crypto as crypto;