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

feat!: Connection functions now return impl Future #108

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

obmarg
Copy link
Owner

@obmarg obmarg commented Jun 8, 2024

Now that the MSRV is > 1.75 we can start making use of return position impl trait.

We need to specify send bounds on the returned futures so we return an impl Trait, but it seems like rust is smart enough to allow us to use an actual async function in the implementations.

Base automatically changed from obmarg/push-tuksrustplrm to main June 8, 2024 14:42
Now that the MSRV is > 1.75 we can start making use of return position impl trait.

We need to specify send bounds on the returned futures so we return an impl
Trait, but it seems like rust is smart enough to allow us to use an actual
async function in the implementations.
@obmarg obmarg marked this pull request as ready for review June 8, 2024 14:45
@obmarg obmarg merged commit c6ecd25 into main Jun 8, 2024
2 checks passed
@obmarg obmarg deleted the obmarg/push-lqpvnynpvlwy branch June 8, 2024 14:46
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.

None yet

1 participant