difftreelog
fix warnings
in: master
6 files changed
node/cli/src/command.rsdiffbeforeafterboth425 .map(|cfg| &cfg.registry);425 .map(|cfg| &cfg.registry);426 let task_manager =426 let task_manager =427 sc_service::TaskManager::new(runner.config().tokio_handle.clone(), *registry)427 sc_service::TaskManager::new(runner.config().tokio_handle.clone(), *registry)428 .map_err(|e| format!("Error: {:?}", e))?;428 .map_err(|e| format!("Error: {e:?}"))?;429 let info_provider = Some(timestamp_with_aura_info(12000));429 let info_provider = Some(timestamp_with_aura_info(12000));430430431 runner.async_run(|config| -> Result<(Pin<Box<dyn Future<Output = _>>>, _)> {431 runner.async_run(|config| -> Result<(Pin<Box<dyn Future<Output = _>>>, _)> {pallets/common/src/eth.rsdiffbeforeafterboth119 } else if self.sub == Default::default() {119 } else if self.sub == Default::default() {120 Ok(Some(T::CrossAccountId::from_eth(self.eth)))120 Ok(Some(T::CrossAccountId::from_eth(self.eth)))121 } else {121 } else {122 Err(format!("All fields of cross account is non zeroed {:?}", self).into())122 Err(format!("All fields of cross account is non zeroed {self:?}").into())123 }123 }124 }124 }125125pallets/scheduler-v2/src/benchmarking.rsdiffbeforeafterboth136 let bound = EncodedCall::bound() as u32;136 let bound = EncodedCall::bound() as u32;137 let mut len = match maybe_lookup_len {137 let mut len = match maybe_lookup_len {138 Some(len) => {138 Some(len) => {139 len.min(<T::Preimages as PreimageRecipient<T::Hash>>::MaxSize::get() - 2)139 len.clamp(140 bound,141 <T::Preimages as PreimageRecipient<T::Hash>>::MaxSize::get() - 2,140 .max(bound) - 3142 ) - 3141 }143 }142 None => bound.saturating_sub(4),144 None => bound.saturating_sub(4),143 };145 };runtime/common/tests/mod.rsdiffbeforeafterboth33const PARA_ID: u32 = 2037;33const PARA_ID: u32 = 2037;343435fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {35fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {36 TPublic::Pair::from_string(&format!("//{}", seed), None)36 TPublic::Pair::from_string(&format!("//{seed}"), None)37 .expect("static values are valid; qed")37 .expect("static values are valid; qed")38 .public()38 .public()39}39}tests/src/eth/nonFungible.test.tsdiffbeforeafterbothno syntactic changes
tests/src/eth/reFungible.test.tsdiffbeforeafterbothno syntactic changes