Skip to content

Commit

Permalink
ci(clippy): fix updated ptr_arg check for rust 1.83
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Jan 6, 2025
1 parent 24ec31b commit 341b869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/coin_selection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 341b869

Please sign in to comment.