Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions crates/nexum-runtime/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,8 @@ impl<'a, R: Runtime> PresetBuilder<'a, R> {
};
let components = R::components().build::<R::Types>(&build_ctx).await?;

// The preset owns its add-ons; the launcher borrows each one to
// install it, so both the owned set and the ref view stay live across
// the launch await.
// `add_ons` owns the boxed add-ons; `add_on_refs` borrows into it and is
// consumed by the launch call, so both must stay in scope for that call.
let add_ons = R::add_ons();
let add_on_refs: Vec<&dyn RuntimeAddOn> = add_ons.iter().map(|a| &**a).collect();

Expand Down
Loading