Skip to content

Commit

Permalink
Fix issue found by cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
10gic committed Sep 9, 2024
1 parent 0a96b87 commit 4967ad2
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ impl TransactionUtilHelper {
pub fn calc_tx_hash(coin_type: CoinType, tx: &str) -> String {
let tx_data = TWStringHelper::create(tx);

let output = TWStringHelper::wrap(unsafe {
TWStringHelper::wrap(unsafe {
tw_transaction_util_calc_tx_hash(coin_type as u32, tx_data.ptr())
})
.to_string()
.expect("!tw_transaction_util_calc_tx_hash returned nullptr");

output
.expect("!tw_transaction_util_calc_tx_hash returned nullptr")
}
}

0 comments on commit 4967ad2

Please sign in to comment.