Skip to content

Commit 04a342c

Browse files
committed
Fixing some new compiler warnings
1 parent fcd0aee commit 04a342c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

rust/src/tx_builder.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use super::*;
22
use super::fees;
33
use super::utils;
44
use std::collections::{BTreeMap, BTreeSet};
5-
use itertools::Itertools;
65

76
// comes from witsVKeyNeeded in the Ledger spec
87
fn witness_keys_for_cert(cert_enum: &Certificate, keys: &mut BTreeSet<Ed25519KeyHash>) {
@@ -585,7 +584,7 @@ impl TransactionBuilder {
585584
return Err(JsError::from_str("Output value must be positive!"));
586585
}
587586
self.add_mint_asset(policy_id, asset_name, amount.clone());
588-
let mut multiasset = Mint::new_from_entry(
587+
let multiasset = Mint::new_from_entry(
589588
policy_id,
590589
&MintAssets::new_from_entry(asset_name, amount.clone())
591590
).as_positive_multiasset();
@@ -608,7 +607,7 @@ impl TransactionBuilder {
608607
return Err(JsError::from_str("Output value must be positive!"));
609608
}
610609
self.add_mint_asset(policy_id, asset_name, amount.clone());
611-
let mut multiasset = Mint::new_from_entry(
610+
let multiasset = Mint::new_from_entry(
612611
policy_id,
613612
&MintAssets::new_from_entry(asset_name, amount.clone())
614613
).as_positive_multiasset();
@@ -1037,10 +1036,6 @@ mod tests {
10371036
)
10381037
}
10391038

1040-
fn create_tx_builder_with_fee_and_coins_per_word(linear_fee: &LinearFee, coins_per_utxo_word: u64) -> TransactionBuilder {
1041-
create_tx_builder(linear_fee, coins_per_utxo_word, 1, 1)
1042-
}
1043-
10441039
fn create_tx_builder_with_fee_and_val_size(linear_fee: &LinearFee, max_val_size: u32) -> TransactionBuilder {
10451040
create_tx_builder_full(linear_fee, 1, 1, max_val_size, 1)
10461041
}

0 commit comments

Comments
 (0)