We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd4b320 commit 983abceCopy full SHA for 983abce
chain-extensions/src/tests.rs
@@ -758,11 +758,12 @@ impl SubtensorExtensionEnv<AccountId> for MockEnv {
758
759
fn charge_weight(&mut self, weight: Weight) -> Result<(), DispatchError> {
760
if let Some(expected) = self.expected_weight
761
- && weight != expected {
762
- return Err(DispatchError::Other(
763
- "unexpected weight charged by mock env",
764
- ));
765
- }
+ && weight != expected
+ {
+ return Err(DispatchError::Other(
+ "unexpected weight charged by mock env",
+ ));
766
+ }
767
self.charged_weight = Some(weight);
768
Ok(())
769
}
0 commit comments