Skip to content

Commit

Permalink
chore: make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
egasimus committed Aug 27, 2024
1 parent f34c144 commit a42a802
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/governance/src/parameters.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use serde::Serialize;
use namada_core::borsh::{BorshDeserialize, BorshSerialize};
use namada_core::token;
use namada_macros::BorshDeserializer;
#[cfg(feature = "migrations")]
use namada_migrations::*;
use namada_state::{StorageRead, StorageResult, StorageWrite};
use serde::Serialize;

use super::storage::keys as goverance_storage;

Expand Down
6 changes: 3 additions & 3 deletions crates/proof_of_stake/src/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use std::str::FromStr;

use borsh::{BorshDeserialize, BorshSerialize};
use serde::Serialize;
use namada_core::arith::checked;
use namada_core::dec::Dec;
use namada_core::storage::Epoch;
Expand All @@ -14,12 +13,13 @@ use namada_governance::parameters::GovernanceParameters;
use namada_macros::BorshDeserializer;
#[cfg(feature = "migrations")]
use namada_migrations::*;
use serde::Serialize;
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
Debug, Clone, BorshDeserialize, BorshDeserializer, BorshSerialize, Serialize,
)]
pub struct PosParams {
/// PoS-owned params
Expand All @@ -32,7 +32,7 @@ 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
Debug, Clone, BorshDeserialize, BorshDeserializer, BorshSerialize, Serialize,
)]
pub struct OwnedPosParams {
/// A maximum number of consensus validators
Expand Down

0 comments on commit a42a802

Please sign in to comment.