]> Untitled Git - bdk/commitdiff
ci(clippy): fix updated ptr_arg check for rust 1.83
authorSteve Myers <steve@notmandatory.org>
Mon, 16 Dec 2024 01:35:58 +0000 (19:35 -0600)
committerSteve Myers <steve@notmandatory.org>
Mon, 16 Dec 2024 01:54:02 +0000 (19:54 -0600)
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
https://github.com/rust-lang/rust-clippy/pull/13313

crates/wallet/src/wallet/coin_selection.rs

index a785c3b28c29ab1ec47d919d4e72478421af4898..4429fae73e0788be48679a71088da4c8e4c3c0fd 100644 (file)
@@ -898,7 +898,7 @@ mod test {
             .collect()
     }
 
-    fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut Vec<WeightedUtxo>) -> Amount {
+    fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut [WeightedUtxo]) -> Amount {
         let utxos_picked_len = rng.gen_range(2..utxos.len() / 2);
         utxos.shuffle(&mut rng);
         utxos[..utxos_picked_len]