replace into_iter with iter
This commit is contained in:
@@ -37,7 +37,7 @@ fn get_role_entries(
|
|||||||
|
|
||||||
fn get_combinations(entries: &[PlayerRoleEntry], count: usize) -> Vec<Vec<&PlayerRoleEntry>> {
|
fn get_combinations(entries: &[PlayerRoleEntry], count: usize) -> Vec<Vec<&PlayerRoleEntry>> {
|
||||||
entries
|
entries
|
||||||
.into_iter()
|
.iter()
|
||||||
.combinations(count)
|
.combinations(count)
|
||||||
.sorted_by(|a, b| {
|
.sorted_by(|a, b| {
|
||||||
let a = a.iter().map(|e| e.priority).sum::<f32>();
|
let a = a.iter().map(|e| e.priority).sum::<f32>();
|
||||||
|
|||||||
Reference in New Issue
Block a user