mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 06:21:02 +00:00
fix clippy (#1698)
This commit is contained in:
committed by
Bastian Köcher
parent
3eb24d4515
commit
66dfd2dcae
@@ -495,8 +495,7 @@ fn validate_out_msgs_details<C: Chain>(
|
||||
) -> Result<(), SubstrateError> {
|
||||
let make_missing_nonce_error = |expected_nonce| {
|
||||
Err(SubstrateError::Custom(format!(
|
||||
"Missing nonce {} in message_details call result. Expected all nonces from {:?}",
|
||||
expected_nonce, nonces,
|
||||
"Missing nonce {expected_nonce} in message_details call result. Expected all nonces from {nonces:?}",
|
||||
)))
|
||||
};
|
||||
|
||||
|
||||
@@ -147,8 +147,7 @@ where
|
||||
let parachain = ParaId(P::SOURCE_PARACHAIN_PARA_ID);
|
||||
if parachains != [parachain] {
|
||||
return Err(SubstrateError::Custom(format!(
|
||||
"Trying to prove unexpected parachains {:?}. Expected {:?}",
|
||||
parachains, parachain,
|
||||
"Trying to prove unexpected parachains {parachains:?}. Expected {parachain:?}",
|
||||
)))
|
||||
}
|
||||
|
||||
@@ -177,8 +176,7 @@ where
|
||||
.transpose()?
|
||||
.ok_or_else(|| {
|
||||
SubstrateError::Custom(format!(
|
||||
"Failed to read expected parachain {:?} head at {:?}",
|
||||
parachain, at_block
|
||||
"Failed to read expected parachain {parachain:?} head at {at_block:?}"
|
||||
))
|
||||
})?;
|
||||
let parachain_head_hash = parachain_head.hash();
|
||||
|
||||
Reference in New Issue
Block a user