diff --git a/transaction/summary/src/report.rs b/transaction/summary/src/report.rs index c590e8e4a6..61a21013b7 100644 --- a/transaction/summary/src/report.rs +++ b/transaction/summary/src/report.rs @@ -187,11 +187,7 @@ impl TransactionReport .find(|(t, k, _)| t == &token_id && *k == TotalKind::Ours) { // If we have an entry, subtract the change value from this - Some(v) => { - v.2 = - v.2.checked_sub(value) - .ok_or(Error::NumericOverflow)? - } + Some(v) => v.2 = v.2.checked_sub(value).ok_or(Error::NumericOverflow)?, // If we do not, create a new entry None => self .totals @@ -216,11 +212,7 @@ impl TransactionReport .find(|(t, k, _)| t == &token_id && *k == TotalKind::Sci) { // If we have an entry, add the value to this - Some(v) => { - v.2 = - v.2.checked_add(value) - .ok_or(Error::NumericOverflow)? - } + Some(v) => v.2 = v.2.checked_add(value).ok_or(Error::NumericOverflow)?, // If we do not, create a new entry None => self .totals diff --git a/transaction/summary/src/verifier.rs b/transaction/summary/src/verifier.rs index 3bdbb69fcd..fc421384ad 100644 --- a/transaction/summary/src/verifier.rs +++ b/transaction/summary/src/verifier.rs @@ -145,8 +145,7 @@ impl TxSummaryStreamingVerifierCtx { report.change_sub(amount)?; } else { // Otherwise, add this as an output to ourself - report - .output_add(TransactionEntity::OurAddress(*address_hash), amount)?; + report.output_add(TransactionEntity::OurAddress(*address_hash), amount)?; } } else { // If we _don't_ have address information but it's to our own address...