Skip to content

Commit

Permalink
Fix Vec<> warning on interleave_shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
spacebear21 committed Nov 7, 2024
1 parent 8ded5a0 commit 2f33bc8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions payjoin/src/receive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T: Clone, R: rand::Rng>(
original: &mut Vec<T>,
new: &mut Vec<T>,
rng: &mut R,
) {
fn interleave_shuffle<T: Clone, R: rand::Rng>(original: &mut Vec<T>, new: &mut [T], rng: &mut R) {
// Shuffle the substitute_outputs
new.shuffle(rng);
// Create a new vector to store the combined result
Expand Down

0 comments on commit 2f33bc8

Please sign in to comment.