mirror of https://github.com/poanetwork/hbbft.git
allowed pass by value of binary_agreement argument
This commit is contained in:
parent
6bce56e7a8
commit
cb997737c9
|
@ -105,6 +105,7 @@ impl VirtualNet<Algo> {
|
||||||
|
|
||||||
/// Tests Binary Agreement on a given configuration with random inputs, with all `false` inputs and
|
/// Tests Binary Agreement on a given configuration with random inputs, with all `false` inputs and
|
||||||
/// with all `true` inputs.
|
/// with all `true` inputs.
|
||||||
|
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
|
||||||
fn binary_agreement(cfg: TestConfig) {
|
fn binary_agreement(cfg: TestConfig) {
|
||||||
let mut rng: TestRng = TestRng::from_seed(cfg.seed);
|
let mut rng: TestRng = TestRng::from_seed(cfg.seed);
|
||||||
let size = cfg.dimension.size();
|
let size = cfg.dimension.size();
|
||||||
|
|
Loading…
Reference in New Issue