mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
fix another clippy warning (#1448)
This commit is contained in:
committed by
Bastian Köcher
parent
631111ef7f
commit
ee5b692f72
@@ -332,12 +332,11 @@ async fn ensure_pallet_operating_mode<P: SubstrateFinalitySyncPipeline>(
|
|||||||
match (operational, finality_target.ensure_pallet_active().await) {
|
match (operational, finality_target.ensure_pallet_active().await) {
|
||||||
(true, Ok(())) => Ok(()),
|
(true, Ok(())) => Ok(()),
|
||||||
(false, Err(SubstrateError::BridgePalletIsHalted)) => Ok(()),
|
(false, Err(SubstrateError::BridgePalletIsHalted)) => Ok(()),
|
||||||
_ =>
|
_ => Err(anyhow::format_err!(
|
||||||
return Err(anyhow::format_err!(
|
"Bridge GRANDPA pallet at {} is expected to be {}, but it isn't",
|
||||||
"Bridge GRANDPA pallet at {} is expected to be {}, but it isn't",
|
P::TargetChain::NAME,
|
||||||
P::TargetChain::NAME,
|
if operational { "operational" } else { "halted" },
|
||||||
if operational { "operational" } else { "halted" },
|
)),
|
||||||
)),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user