diff --git a/substrate/frame/executive/src/lib.rs b/substrate/frame/executive/src/lib.rs index 8f07aafbab..f48fda4841 100644 --- a/substrate/frame/executive/src/lib.rs +++ b/substrate/frame/executive/src/lib.rs @@ -375,16 +375,16 @@ where if remaining_weight > 0 { let mut used_weight = - as OnIdle>::on_idle( - block_number, - remaining_weight - ); + as OnIdle>::on_idle( + block_number, + remaining_weight + ); remaining_weight = remaining_weight.saturating_sub(used_weight); used_weight = >::on_idle( - block_number, - remaining_weight - ) - .saturating_add(used_weight); + block_number, + remaining_weight + ) + .saturating_add(used_weight); >::register_extra_weight_unchecked(used_weight, DispatchClass::Mandatory); }