Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-iohk committed Nov 28, 2024
1 parent 45c8f95 commit 96272b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/search_transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ impl From<UserCommand> for BlockTransaction {
let negated_creation_fee = format!("-{}", creation_fee);
operations.push(operation(
operation_index,
if &user_command.status == &TransactionStatus::Applied { Some(&negated_creation_fee) } else { None },
if user_command.status == TransactionStatus::Applied { Some(&negated_creation_fee) } else { None },
receiver_account_id,
OperationType::AccountCreationFeeViaPayment,
Some(&user_command.status),
Expand All @@ -535,7 +535,7 @@ impl From<UserCommand> for BlockTransaction {
let negated_amt = format!("-{}", amt);
operations.push(operation(
operation_index,
if &user_command.status == &TransactionStatus::Applied { Some(&negated_amt) } else { None },
if user_command.status == TransactionStatus::Applied { Some(&negated_amt) } else { None },
source_account_id,
OperationType::PaymentSourceDec,
Some(&user_command.status),
Expand All @@ -549,7 +549,7 @@ impl From<UserCommand> for BlockTransaction {
// Operation 4: Payment Receiver Increment
operations.push(operation(
operation_index,
if &user_command.status == &TransactionStatus::Applied { Some(&amt) } else { None },
if user_command.status == TransactionStatus::Applied { Some(&amt) } else { None },
receiver_account_id,
OperationType::PaymentReceiverInc,
Some(&user_command.status),
Expand Down

0 comments on commit 96272b2

Please sign in to comment.