Skip to content

Commit

Permalink
fix: unused warnings
Browse files Browse the repository at this point in the history
- [node/chain_spec:kreivo]: allowed dead_code on unused functions + removed useless .into() calls
- [node/chain_spec:service]: comment out unused import
- [runtime]: comment out unused imports
  • Loading branch information
pandres95 authored and olanod committed Jan 12, 2024
1 parent 977edc9 commit b55841b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions node/src/chain_spec/kreivo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub fn kreivo_rococo_chain_spec_local() -> ChainSpec {
Extensions {
relay_chain: "rococo-local".into(),
// You MUST set this to the correct network!
para_id: KREIVO_PARA_ID.into(),
para_id: KREIVO_PARA_ID,
},
)
.with_name("Kreivo Local-Rococo Local")
Expand Down Expand Up @@ -83,7 +83,7 @@ pub fn kreivo_kusama_chain_spec_local() -> ChainSpec {
Extensions {
relay_chain: "rococo-local".into(),
// You MUST set this to the correct network!
para_id: KREIVO_PARA_ID.into(),
para_id: KREIVO_PARA_ID,
},
)
.with_name("Kreivo Local-Rococo Local")
Expand Down Expand Up @@ -121,6 +121,7 @@ pub fn kreivo_kusama_chain_spec_local() -> ChainSpec {
.build()
}

#[allow(dead_code)]
pub fn local_testnet_config() -> ChainSpec {
// Give your base currency a unit name and decimal places
let mut properties = sc_chain_spec::Properties::new();
Expand Down Expand Up @@ -187,7 +188,7 @@ pub fn kreivo_kusama_chain_spec() -> ChainSpec {
Extensions {
relay_chain: "kusama".into(),
// You MUST set this to the correct network!
para_id: KREIVO_PARA_ID.into(),
para_id: KREIVO_PARA_ID,
},
)
.with_name("Kreivo")
Expand Down Expand Up @@ -255,6 +256,7 @@ fn testnet_genesis(
})
}

#[allow(dead_code)]
fn genesis(
invulnerables: Vec<(AccountId, AuraId)>,
endowed_accounts: Vec<AccountId>,
Expand Down
4 changes: 3 additions & 1 deletion node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ 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::{AccountId, AssetIdForTrustBackedAssets as
// AssetId, Balance, Block, Hash, Header, Nonce};
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
4 changes: 2 additions & 2 deletions runtime/kreivo/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ 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;
// pub use paritydb_weights::constants::ParityDbWeight;
// pub use rocksdb_weights::constants::RocksDbWeight;

0 comments on commit b55841b

Please sign in to comment.