]> Untitled Git - bdk/commitdiff
ci(clippy): fix updated ptr_arg check for rust 1.83
authorSteve Myers <steve@notmandatory.org>
Mon, 6 Jan 2025 16:22:04 +0000 (10:22 -0600)
committerSteve Myers <steve@notmandatory.org>
Mon, 6 Jan 2025 16:22:04 +0000 (10:22 -0600)
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
rust-lang/rust-clippy#13313

src/wallet/coin_selection.rs

index 8eaf3112170695461e044dd2f42d89f2cd1c6e77..e85e2444393c3618e7339a2f917c5757b9056204 100644 (file)
@@ -868,7 +868,7 @@ mod test {
         vec![utxo; utxos_number]
     }
 
-    fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut Vec<WeightedUtxo>) -> u64 {
+    fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut [WeightedUtxo]) -> u64 {
         let utxos_picked_len = rng.gen_range(2..utxos.len() / 2);
         utxos.shuffle(&mut rng);
         utxos[..utxos_picked_len]