From 2f33bc83ae6f37c9e63cbdb57f35e298d8f402b0 Mon Sep 17 00:00:00 2001 From: spacebear Date: Thu, 7 Nov 2024 15:54:06 -0500 Subject: [PATCH] Fix Vec<> warning on interleave_shuffle See https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg --- payjoin/src/receive/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/payjoin/src/receive/mod.rs b/payjoin/src/receive/mod.rs index b474925ac..071c744da 100644 --- a/payjoin/src/receive/mod.rs +++ b/payjoin/src/receive/mod.rs @@ -451,11 +451,7 @@ impl WantsOutputs { /// Shuffles `new` vector, then interleaves its elements with those from `original`, /// maintaining the relative order in `original` but randomly inserting elements from `new`. /// The combined result replaces the contents of `original`. -fn interleave_shuffle( - original: &mut Vec, - new: &mut Vec, - rng: &mut R, -) { +fn interleave_shuffle(original: &mut Vec, new: &mut [T], rng: &mut R) { // Shuffle the substitute_outputs new.shuffle(rng); // Create a new vector to store the combined result