mirror of https://github.com/poanetwork/hbbft.git
Remove unused pairing import.
Also use the new `Iterator::flatten`.
This commit is contained in:
parent
520083de2e
commit
7002dad54c
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
extern crate env_logger;
|
||||
extern crate hbbft;
|
||||
extern crate pairing;
|
||||
extern crate rand;
|
||||
extern crate threshold_crypto as crypto;
|
||||
|
||||
|
|
Loading…
Reference in New Issue