Skip to content

Commit ef940f0

Browse files
authored
Merge pull request #360 from Emurgo/ruslan/warns
Fixing warnings
2 parents 69048f1 + 4ec1c8e commit ef940f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rust/src/tx_builder.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ impl TransactionBuilder {
382382
// run largest-fist by each asset type
383383
if let Some(ma) = output_total.multiasset.clone() {
384384
for (policy_id, assets) in ma.0.iter() {
385-
for (asset_name, asset_amount) in assets.0.iter() {
385+
for (asset_name, _) in assets.0.iter() {
386386
self.cip2_largest_first_by(
387387
available_inputs,
388388
&mut available_indices,
@@ -407,7 +407,7 @@ impl TransactionBuilder {
407407
// run random-improve by each asset type
408408
if let Some(ma) = output_total.multiasset.clone() {
409409
for (policy_id, assets) in ma.0.iter() {
410-
for (asset_name, asset_amount) in assets.0.iter() {
410+
for (asset_name, _) in assets.0.iter() {
411411
self.cip2_random_improve_by(
412412
available_inputs,
413413
&mut available_indices,
@@ -561,7 +561,6 @@ impl TransactionBuilder {
561561

562562
// after finalizing the improvement we need to actually add these results to the builder
563563
for output in outputs.iter() {
564-
let associated = associated_indices.get_mut(output).unwrap();
565564
for i in associated_indices.get(output).unwrap().iter() {
566565
let input = &available_inputs[*i];
567566
let input_fee = self.fee_for_input(&input.output.address, &input.input, &input.output.amount)?;

0 commit comments

Comments
 (0)