diff --git a/integration-tests/src/balance_transfer.rs b/integration-tests/src/balance_transfer.rs index 7a5583e81b35dc122eb02bc6b5d3364e198a5f23..b10897ecce7b467a2739b14d11d3f5f911a08b2f 100644 --- a/integration-tests/src/balance_transfer.rs +++ b/integration-tests/src/balance_transfer.rs @@ -33,7 +33,7 @@ async fn test_balance_transfer() -> Result<(), Box<dyn std::error::Error>> { api.tx() .balances() .transfer(dave.clone().into(), 512) - .create_signed(&alice, Default::default()) + .create_signed(&alice, ()) .await?, ) .await?; @@ -44,7 +44,7 @@ async fn test_balance_transfer() -> Result<(), Box<dyn std::error::Error>> { ); // verify that Bob's free Balance increased - let dave_post = api.storage().system().account(dave.into(), None).await?; + let dave_post = api.storage().system().account(dave, None).await?; println!("Bob's Free Balance is now {}\n", dave_post.data.free); assert_eq!(dave_post.data.free, 512); diff --git a/node/src/cli.rs b/node/src/cli.rs index 12d5040024e528b6f2f97a3989a110ebad00bcc9..60d8cfe385bda291c7df8d7d308eeb3cd167eea8 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -82,8 +82,9 @@ impl FromStr for Sealing { "instant" => Self::Instant, "manual" => Self::Manual, s => { - let millis = - u64::from_str_radix(s, 10).map_err(|_| "couldn't decode sealing param")?; + let millis = s + .parse::<u64>() + .map_err(|_| "couldn't decode sealing param")?; Self::Interval(millis) } }) diff --git a/node/src/service.rs b/node/src/service.rs index 6973b8cade070b1c9c36ae70a2069c9beb543b27..e4833286d16575f3672a7c2d0196bcb742b9ac4c 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -241,7 +241,7 @@ where let (client, backend, keystore_container, task_manager) = sc_service::new_full_parts::<Block, RuntimeApi, _>( - &config, + config, telemetry.as_ref().map(|(_, telemetry)| telemetry.handle()), executor, )?; diff --git a/pallets/identity/src/lib.rs b/pallets/identity/src/lib.rs index 51b62b76dcf2cc3dc033af6c173e314ff46ee6a6..a11aaba472d28ee8d1269798d4b1d4f9b0de90b0 100644 --- a/pallets/identity/src/lib.rs +++ b/pallets/identity/src/lib.rs @@ -15,6 +15,7 @@ // along with Substrate-Libre-Currency. If not, see <https://www.gnu.org/licenses/>. #![cfg_attr(not(feature = "std"), no_std)] +#![allow(clippy::type_complexity)] pub mod traits; mod types; @@ -161,7 +162,6 @@ pub mod pallet { >; // GENESIS // - #[pallet::genesis_config] pub struct GenesisConfig<T: Config> { pub identities: