Skip to content

Commit

Permalink
rusk-wallet: Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed Jan 29, 2025
1 parent 7ea885a commit e3b82ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
17 changes: 8 additions & 9 deletions rusk-wallet/src/bin/command/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ impl Display for TransactionHistory {
Transaction::Phoenix(_) => dusk_core::transfer::PHOENIX_TOPIC,
};

write!(
writeln!(
f,
"{height: >9} | {tx_id} | {contract: ^8} | {dusk: >+17.9} | {fee} | {tx_type}\n",
"{height: >9} | {tx_id} | {contract: ^8} | {dusk: >+17.9} | {fee} | {tx_type}",
)
}
}
Expand Down Expand Up @@ -141,15 +141,14 @@ pub(crate) async fn transaction_from_notes(
&& th.height == decoded_note.block_height
});

match outgoing_tx {
// Outgoing txs found, this should be the change or any
// other output created by the tx result
// (like withdraw or unstake)
Some(th) => th.amount += note_amount,
// If outgoing txs found, this should be the change or any
// other output created by the tx result
// (like withdraw or unstake)
if let Some(th) = outgoing_tx {
th.amount += note_amount

// No outgoing txs found, this note should belong to a
// If no outgoing txs found, this note should belong to a
// preconfigured genesis state
None => (),
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion rusk-wallet/src/bin/interactive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ pub(crate) async fn run_loop(
}
}
RunResult::History(ref history) => {
crate::prompt::tx_history_list(&history);
let _ = crate::prompt::tx_history_list(history);

println!();
}
_ => println!("\r{}", res),
Expand Down

0 comments on commit e3b82ce

Please sign in to comment.