diff --git a/payjoin/src/receive/mod.rs b/payjoin/src/receive/mod.rs index b474925a..071c744d 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