diff --git a/core/crypto/src/signature.rs b/core/crypto/src/signature.rs index 5f606d6ce9d..9d6aa6df184 100644 --- a/core/crypto/src/signature.rs +++ b/core/crypto/src/signature.rs @@ -13,7 +13,7 @@ use rand_core::OsRng; use secp256k1::Message; use serde::{Deserialize, Serialize}; -pub static SECP256K1: Lazy = Lazy::new(|| secp256k1::Secp256k1::new()); +pub static SECP256K1: Lazy = Lazy::new(secp256k1::Secp256k1::new); #[derive(Debug, Copy, Clone, Serialize, Deserialize)] pub enum KeyType { diff --git a/test-utils/runtime-tester/src/scenario_builder.rs b/test-utils/runtime-tester/src/scenario_builder.rs index 749d3abdc75..be1363aad84 100644 --- a/test-utils/runtime-tester/src/scenario_builder.rs +++ b/test-utils/runtime-tester/src/scenario_builder.rs @@ -46,7 +46,7 @@ impl ScenarioBuilder { /// Creates builder with an empty scenario with 4 accounts. /// Default `use_in_memory_store` -- true. pub fn new() -> Self { - let network_config = NetworkConfig { seeds: (0..4).map(|x| id_to_seed(x)).collect() }; + let network_config = NetworkConfig { seeds: (0..4).map(id_to_seed).collect() }; let runtime_config = RuntimeConfig { max_total_prepaid_gas: 300 * 10u64.pow(12), gas_limit: 1_000_000_000_000_000, @@ -68,7 +68,7 @@ impl ScenarioBuilder { /// Changes number of accounts to `num_accounts`. pub fn number_of_accounts(mut self, num_accounts: usize) -> Self { self.scenario.network_config = - NetworkConfig { seeds: (0..num_accounts).map(|x| id_to_seed(x)).collect() }; + NetworkConfig { seeds: (0..num_accounts).map(id_to_seed).collect() }; self }