Skip to content

Commit

Permalink
call iter() instead of into_iter()
Browse files Browse the repository at this point in the history
  • Loading branch information
joksas committed Aug 17, 2024
1 parent b1364d0 commit 4b11f46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ pub fn use_remote_splits(
.filter(|&&x| x != 0)
.fold(0, |acc, &x| gcd(acc, x));
let new_local_splits = local_splits
.into_iter()
.iter()
.map(|x| if *x == 0 { 0 } else { x / gcd_value })
.collect();
let new_remote_splits = remote_splits
.into_iter()
.iter()
.map(|x| if *x == 0 { 0 } else { x / gcd_value })
.collect();
return (new_local_splits, new_remote_splits);
Expand Down

0 comments on commit 4b11f46

Please sign in to comment.