Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUST-1982 Fix aggregate with_type with explicit session #1155

Merged
merged 2 commits into from
Jun 27, 2024

Conversation

abr-egn
Copy link
Contributor

@abr-egn abr-egn commented Jun 27, 2024

RUST-1982

We accidentally overspecialized the impls here, meaning both aggregate(..).session(..).with_type::<T>() and aggregate(..).with_type::<T>().session(..) would fail to compile for slightly different reasons.

@abr-egn abr-egn requested a review from isabelatkinson June 27, 2024 15:08
Copy link
Contributor

@isabelatkinson isabelatkinson left a comment

Choose a reason for hiding this comment

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

changes LGTM, just looks like there's an MSRV failure that requires an explicit Send bound on the action type

@abr-egn
Copy link
Contributor Author

abr-egn commented Jun 27, 2024

changes LGTM, just looks like there's an MSRV failure that requires an explicit Send bound on the action type

Happily, it turned out just being explicit that 'self' doesn't actually cross the await point fixed this without the need for a bound. I guess the newer compiler version is smart enough to notice that itself.

@abr-egn abr-egn merged commit 63ea2f7 into mongodb:main Jun 27, 2024
4 of 5 checks passed
qm3ster pushed a commit to qm3ster/mongo-rust-driver that referenced this pull request Jun 27, 2024
abr-egn added a commit to abr-egn/mongo-rust-driver that referenced this pull request Jul 9, 2024
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