amount: Format verification file
Done as a separate patch so that the diff of the verification code move was less noisy.
This commit is contained in:
parent
01f907b7a6
commit
cd5d1aba2f
|
@ -112,10 +112,6 @@ fn s_amount_homomorphic_checked() {
|
|||
|
||||
assert_eq!(
|
||||
SignedAmount::from_sat(n1).positive_sub(SignedAmount::from_sat(n2)),
|
||||
if n1 >= 0 && n2 >= 0 && n1 >= n2 {
|
||||
Some(SignedAmount::from_sat(n1 - n2))
|
||||
} else {
|
||||
None
|
||||
},
|
||||
if n1 >= 0 && n2 >= 0 && n1 >= n2 { Some(SignedAmount::from_sat(n1 - n2)) } else { None },
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue