chore(sprout): implement iterator stamping to cleanup code

This commit is contained in:
alex committed 2026-01-26 20:13:52 -08:00
1 parent 95e0360721
commit c295de4951
7 files changed
+30 -27

No files matched your search

+4 -5
View File
@@ -22,11 +22,10 @@ pub fn generate(
// Stamp the entry title and actions from the template.
let mut entry = list.entry.clone();
entry.actions = entry
.actions
.into_iter()
.map(|action| context.stamp(action))
.collect();
// Stamp all the actions this entry references.
entry.actions = context.stamp_iter(entry.actions.into_iter()).collect();
// Push the entry into the list with the new context.
entries.push(BootableEntry::new(
index.to_string(),