Key the paint list park sites so a group-free paint moves

This commit is contained in:
Dennis Kobert
2026-09-05 12:10:20 +00:00
parent 14660bdb64
commit 38d479bdfa
4 changed files with 10 additions and 8 deletions

View File

@@ -214,7 +214,7 @@ where
};
let park_paint = |paint: Option<List<Graphic<'static>>>| -> Result<Option<&'e List<Graphic<'static>>>, Interrupt> {
match paint {
Some(paint) => Ok(Some(arena.alloc(paint).ok_or_else(exhausted)?.0)),
Some(paint) => Ok(Some(arena.alloc_sized_keyed(paint, 0).ok_or_else(exhausted)?.0)),
None => Ok(None),
}
};