replace into_iter with iter

This commit is contained in:
Lionarius
2023-04-26 11:39:31 +03:00
parent 593fb3b423
commit 87788765d8

View File

@@ -37,7 +37,7 @@ fn get_role_entries(
fn get_combinations(entries: &[PlayerRoleEntry], count: usize) -> Vec<Vec<&PlayerRoleEntry>> {
entries
.into_iter()
.iter()
.combinations(count)
.sorted_by(|a, b| {
let a = a.iter().map(|e| e.priority).sum::<f32>();