chore: clippy

This commit is contained in:
skoupidi
2024-02-06 15:34:13 +02:00
parent d2844e43f0
commit c8b726e0ca
4 changed files with 5 additions and 5 deletions

View File

@@ -192,7 +192,7 @@ fn generate_transaction(
let fork_previous_hash = last_proposal.block.header.previous;
// We're just going to be using a zero spend-hook and user-data
let spend_hook = pallas::Base::zero();
let spend_hook = pallas::Base::zero().into();
let user_data = pallas::Base::zero();
// Build the transaction debris

View File

@@ -699,7 +699,7 @@ impl Drk {
let leaf_position = tree.mark().unwrap();
let owncoin = OwnCoin {
coin: coin.clone(),
coin: *coin,
note: note.clone(),
secret: *secret,
nullifier: Nullifier::from(poseidon_hash([secret.inner(), coin.inner()])),

View File

@@ -162,7 +162,7 @@ fn alice2alice_multiplecoins_random_amounts() -> Result<()> {
info!(target: "money", "[Faucet] ===================================================");
info!(target: "money", "[Faucet] Building Money::Mint params for Alice's mint for token {} and amount {}", i, amount);
info!(target: "money", "[Faucet] ===================================================");
let (mint_tx, mint_params) =
let (mint_tx, mint_params, mint_auth_params) =
th.token_mint(amount, &Holder::Alice, &Holder::Alice, None, None)?;
for holder in &HOLDERS {
@@ -177,7 +177,7 @@ fn alice2alice_multiplecoins_random_amounts() -> Result<()> {
// Gather new owncoins
let owncoin =
th.gather_owncoin_from_output(&Holder::Alice, &mint_params.output, None)?;
th.gather_owncoin(&Holder::Alice, &mint_params.coin, &mint_auth_params.enc_note, None)?;
let token_id = owncoin.note.token_id;
owncoins.push(vec![owncoin]);
minted_amounts.push(amount);

View File

@@ -304,7 +304,7 @@ impl TestHarness {
let note: MoneyNote = note.decrypt(&secret_key)?;
let oc = OwnCoin {
coin: coin.clone(),
coin: *coin,
note: note.clone(),
secret: secret_key,
nullifier: Nullifier::from(poseidon_hash([