Skip to content

Commit

Permalink
fix clippy lint in around PosParams and OwnedPosParams
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus authored Aug 26, 2024
1 parent 1673caf commit f34c144
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/proof_of_stake/src/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ use thiserror::Error;

/// Proof-of-Stake system parameters. This includes parameters that are used in
/// PoS but are read from other accounts storage (governance).
#[derive(Debug, Clone, BorshDeserialize, BorshDeserializer, BorshSerialize, Serialize)]
#[derive(
Debug, Clone, BorshDeserialize, BorshDeserializer, BorshSerialize, Serialize
)]
pub struct PosParams {
/// PoS-owned params
pub owned: OwnedPosParams,
Expand All @@ -29,7 +31,9 @@ pub struct PosParams {

/// Proof-of-Stake system parameters owned by the PoS address, set at genesis
/// and can only be changed via governance
#[derive(Debug, Clone, BorshDeserialize, BorshDeserializer, BorshSerialize, Serialize)]
#[derive(
Debug, Clone, BorshDeserialize, BorshDeserializer, BorshSerialize, Serialize
)]
pub struct OwnedPosParams {
/// A maximum number of consensus validators
pub max_validator_slots: u64,
Expand Down

0 comments on commit f34c144

Please sign in to comment.