Prepare for follow-on change

This commit is contained in:
Hanno Braun 2024-12-10 18:47:01 +01:00
parent 6cff14dcda
commit 3f0a76aaf4

View File

@ -37,9 +37,9 @@ impl OperationView {
}
pub fn selected(&self) -> Option<Box<dyn Operation>> {
self.ops_log
.operations
.get(self.selected)
.map(|op| Box::new(op.clone()) as _)
self.operations()
.into_iter()
.nth(self.selected)
.map(|(op, _)| op)
}
}