mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-10 10:31:29 -10:00
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:
1 parent
7cf0bceb8b
commit
b40d434d4b
1 file changed
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user