From: Steve Myers Date: Mon, 6 Jan 2025 16:22:04 +0000 (-0600) Subject: ci(clippy): fix updated ptr_arg check for rust 1.83 X-Git-Tag: v0.30.1~1^2~5 X-Git-Url: http://internal-gitweb-vhost/?a=commitdiff_plain;h=341b86986bbc3f57264d658b3343fd714d6ecbe3;p=bdk ci(clippy): fix updated ptr_arg check for rust 1.83 https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg rust-lang/rust-clippy#13313 --- diff --git a/src/wallet/coin_selection.rs b/src/wallet/coin_selection.rs index 8eaf3112..e85e2444 100644 --- a/src/wallet/coin_selection.rs +++ b/src/wallet/coin_selection.rs @@ -868,7 +868,7 @@ mod test { vec![utxo; utxos_number] } - fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut Vec) -> 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]