Skip to content

Commit

Permalink
allow a static mut ref to an atomic variable used for test log initia…
Browse files Browse the repository at this point in the history
…lization; allow many arguments to Signer::new
  • Loading branch information
xoloki committed Dec 2, 2024
1 parent abbd3d0 commit 7d00062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/state_machine/coordinator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ pub mod test {
)
}

#[allow(static_mut_refs)]
pub fn setup_with_timeouts<Coordinator: CoordinatorTrait, SignerType: SignerTrait>(

Check failure on line 453 in src/state_machine/coordinator/mod.rs

View workflow job for this annotation

GitHub Actions / clippy

this function has too many arguments (8/7)
num_signers: u32,
keys_per_signer: u32,
Expand Down
1 change: 1 addition & 0 deletions src/state_machine/signer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ pub struct Signer<SignerType: SignerTrait> {

impl<SignerType: SignerTrait> Signer<SignerType> {
/// create a Signer
#[allow(clippy::too_many_arguments)]
pub fn new(
threshold: u32,
total_signers: u32,
Expand Down

0 comments on commit 7d00062

Please sign in to comment.