]> Untitled Git - bdk/commitdiff
Use consistent field ordering
authorTobin Harding <me@tobin.cc>
Thu, 6 May 2021 04:34:22 +0000 (14:34 +1000)
committerTobin Harding <me@tobin.cc>
Tue, 11 May 2021 00:51:44 +0000 (10:51 +1000)
Clippy emits:

  warning: struct constructor field order is inconsistent with struct
  definition field order

As suggested, re-order the fields to be consistent with the struct
definition.

src/wallet/coin_selection.rs

index 5653662ddede491684e3a0eeaf21a23031a631d5..f2e2ca5f0afd709c4786a44ea6c928068db17701 100644 (file)
@@ -255,8 +255,8 @@ impl OutputGroup {
         let effective_value = weighted_utxo.utxo.txout().value as i64 - fee.ceil() as i64;
         OutputGroup {
             weighted_utxo,
-            effective_value,
             fee,
+            effective_value,
         }
     }
 }