fix(mods): pass the property lookup by value

clippy::needless_borrows_for_generic_args: the closure is Copy and block_order
takes it by value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
[email protected]andClaude Opus 5.5 committed 2026-11-01 19:37:21 +01:00
1 parent 7cf0bceb8b
commit b40d434d4b
1 file changed
+1 -1
+1 -1
View File
@@ -921,7 +921,7 @@ impl<'a> Plan<'a> {
.iter()
.map(|(name, property)| (name.clone(), property.values().len() as u32))
.collect();
let order = block_order(&states, &properties, &declared, combos.len() as u32);
let order = block_order(&states, properties, &declared, combos.len() as u32);
// The lookup from (template state, combination) to the state's row.
let mut rows = vec![0; order.len()];
for (position, &(state, combo)) in order.iter().enumerate() {