From: Steve Myers Date: Mon, 16 Dec 2024 01:35:58 +0000 (-0600) Subject: ci(clippy): fix updated ptr_arg check for rust 1.83 X-Git-Tag: core-0.4.1~2^2~2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/enum.FileError.html?a=commitdiff_plain;h=173cc42d00748e95df889fd487b5bebf458109d6;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 https://github.com/rust-lang/rust-clippy/pull/13313 --- diff --git a/crates/wallet/src/wallet/coin_selection.rs b/crates/wallet/src/wallet/coin_selection.rs index a785c3b2..4429fae7 100644 --- a/crates/wallet/src/wallet/coin_selection.rs +++ b/crates/wallet/src/wallet/coin_selection.rs @@ -898,7 +898,7 @@ mod test { .collect() } - fn sum_random_utxos(mut rng: &mut StdRng, utxos: &mut Vec) -> 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]