diff --git a/musicus/src/editors/work.rs b/musicus/src/editors/work.rs index 4f2b2c9..c13a256 100644 --- a/musicus/src/editors/work.rs +++ b/musicus/src/editors/work.rs @@ -205,7 +205,8 @@ impl Screen, Work> for WorkEditor { edit_button.connect_clicked(clone!(@weak this => move |_| { spawn!(@clone this, async move { - match this.structure.borrow()[index].clone() { + let part_or_section = this.structure.borrow()[index].clone(); + match part_or_section { PartOrSection::Part(part) => { if let Some(part) = push!(this.handle, WorkPartEditor, Some(part)).await { let length = {