Alias the types of element and constraint keys

This will make it easier to change the key types if we change how we
store and access elements and constraints.
This commit is contained in:
Aaron Fenyes 2024-11-10 20:13:40 -08:00
parent ed1890bffc
commit ced001bbfe
3 changed files with 10 additions and 6 deletions

View file

@ -150,7 +150,7 @@ pub fn Outline() -> View {
ul(class="constraints") {
Keyed(
list=elt.constraints.into_iter().collect::<Vec<_>>(),
view=move |c_key: usize| {
view=move |c_key| {
let c_state = use_context::<AppState>();
let assembly = &c_state.assembly;
let cst = assembly.constraints.with(|csts| csts[c_key].clone());