Skip to content

proposal for separating FM and non-FM support_bundle_creates#10667

Merged
mergeconflict merged 2 commits into
mergeconflict/fm-sitrepguardedinsert-support-bundlesfrom
eliza/mergeconflict/fm-sitrepguardedinsert-support-bundles
Jun 23, 2026
Merged

proposal for separating FM and non-FM support_bundle_creates#10667
mergeconflict merged 2 commits into
mergeconflict/fm-sitrepguardedinsert-support-bundlesfrom
eliza/mergeconflict/fm-sitrepguardedinsert-support-bundles

Conversation

@hawkw

@hawkw hawkw commented Jun 23, 2026

Copy link
Copy Markdown
Member

Comment on lines +330 to +334
) -> Pin<
Box<
dyn Future<Output = Result<SupportBundle, DbError>> + Send + 'a,
>,
>,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't like that this part must be Box<Pinned>>, but it is sadly necessary because otherwise, the returned Future cannot be constrained to the lifetime of the &'a Connection<DbConnection>. so, sigh. whatever.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ironically, we could probably get rid of the box here if we had a trait like

trait InsertSupportBundle<'conn> {
   type Future: Future<Output = Result<SupportBundle, DbError> + Send + 'conn;
   fn do_that(conn: &'conn Connection, ...) -> Self::Future
}

but then it can't be a closure, and being able to close over all the junk without having to go and make a struct and all that is helpful for making this code not absurdly verbose. and this is Nexus so i don't think the box golf is that worthwhile...)

@hawkw hawkw requested a review from mergeconflict June 23, 2026 22:46
@mergeconflict mergeconflict merged commit 351dd14 into mergeconflict/fm-sitrepguardedinsert-support-bundles Jun 23, 2026
4 of 16 checks passed
@mergeconflict mergeconflict deleted the eliza/mergeconflict/fm-sitrepguardedinsert-support-bundles branch June 23, 2026 22:57
mergeconflict added a commit that referenced this pull request Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants