Skip to content

Commit 983abce

Browse files
committed
cargo fmt
1 parent dd4b320 commit 983abce

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

chain-extensions/src/tests.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,12 @@ impl SubtensorExtensionEnv<AccountId> for MockEnv {
758758

759759
fn charge_weight(&mut self, weight: Weight) -> Result<(), DispatchError> {
760760
if let Some(expected) = self.expected_weight
761-
&& weight != expected {
762-
return Err(DispatchError::Other(
763-
"unexpected weight charged by mock env",
764-
));
765-
}
761+
&& weight != expected
762+
{
763+
return Err(DispatchError::Other(
764+
"unexpected weight charged by mock env",
765+
));
766+
}
766767
self.charged_weight = Some(weight);
767768
Ok(())
768769
}

0 commit comments

Comments
 (0)