Skip to content

Commit

Permalink
fix: lint + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Nov 22, 2023
1 parent 5b8e2bb commit d5ef412
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 51 deletions.
3 changes: 2 additions & 1 deletion node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ use std::sync::Arc;

use parachains_common::{AccountId, Balance, Block, Nonce};
use sc_client_api::AuxStore;
pub use sc_rpc::{DenyUnsafe, SubscriptionTaskExecutor};
pub use sc_rpc::DenyUnsafe;
// pub use sc_rpc::SubscriptionTaskExecutor;
use sc_transaction_pool_api::TransactionPool;
use sp_api::ProvideRuntimeApi;
use sp_block_builder::BlockBuilder;
Expand Down
3 changes: 2 additions & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ use cumulus_primitives_core::{
use cumulus_relay_chain_interface::{OverseerHandle, RelayChainInterface};
use futures::lock::Mutex;
use jsonrpsee::RpcModule;
pub use parachains_common::{AccountId, AssetIdForTrustBackedAssets as AssetId, Balance, Block, Hash, Header, Nonce};
// pub use parachains_common::AssetIdForTrustBackedAssets as AssetId;
pub use parachains_common::{AccountId, Balance, Block, Hash, Header, Nonce};
use parity_scale_codec::Codec;
use sc_consensus::{
import_queue::{BasicQueue, Verifier as VerifierT},
Expand Down
1 change: 0 additions & 1 deletion pallets/communities/src/functions/governance/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use super::*;

mod tally;
mod tracks;
43 changes: 0 additions & 43 deletions pallets/communities/src/functions/governance/tracks.rs

This file was deleted.

1 change: 1 addition & 0 deletions pallets/communities/src/functions/validation/challenges.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use super::*;

use crate::traits::validation::{ChallengeRegistrationRejectionCause, ValidationChallenge, ValidationRejectionCause};
use sp_std::vec::Vec;

impl<T: Config> ValidationChallenge for Pallet<T> {
type EntityId = T::CommunityId;
Expand Down
2 changes: 0 additions & 2 deletions pallets/communities/src/tests/mock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ use crate::{
};

pub(super) use challenger::Challenger;
use poll::TestPolls;

type Block = frame_system::mocking::MockBlock<Test>;
type WeightInfo = ();
Expand Down Expand Up @@ -121,7 +120,6 @@ impl pallet_balances::Config for Test {
type FreezeIdentifier = ();
type MaxHolds = ConstU32<10>;
type MaxFreezes = ConstU32<10>;
type RuntimeFreezeReason = ();
}

parameter_types! {
Expand Down
1 change: 1 addition & 0 deletions pallets/communities/src/traits/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use frame_support::{
};
use parity_scale_codec::MaxEncodedLen;
use sp_runtime::traits::Saturating;
use sp_std::vec::Vec;

#[derive(Debug, Encode, Decode)]
pub enum ChallengeRegistrationRejectionCause {
Expand Down
2 changes: 1 addition & 1 deletion pallets/payments/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ pub mod pallet {
let payment = maybe_payment.as_mut().map_err(|_| Error::<T>::InvalidPayment)?;

// ensure the payment is in Requested Refund state
let RefundRequested {cancel_block} = payment.state else {
let RefundRequested { cancel_block } = payment.state else {
fail!(Error::<T>::InvalidAction);
};
ensure!(
Expand Down
2 changes: 0 additions & 2 deletions runtime/kreivo/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,3 @@ pub mod xcm;

pub use block_weights::constants::BlockExecutionWeight;
pub use extrinsic_weights::constants::ExtrinsicBaseWeight;
pub use paritydb_weights::constants::ParityDbWeight;
pub use rocksdb_weights::constants::RocksDbWeight;

0 comments on commit d5ef412

Please sign in to comment.