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

Make all BoxFutures 'static #1166

Closed
wants to merge 1 commit into from
Closed

Conversation

oscarwcl
Copy link
Contributor

None of these futures are borrowing anything from outside their Box, so their lifetimes can be 'static. This avoids polluting a bunch of public types with unnecessary lifetime parameters.

Fixes #908

None of these futures are borrowing anything from outside their Box, so
their lifetimes can be 'static. This avoids polluting a bunch of public
types with unnecessary lifetime parameters.
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM!

@Jarema
Copy link
Member

Jarema commented Dec 17, 2023

@oscarwcl this is good to be merged after solving the conflicts

@oscarwcl
Copy link
Contributor Author

#1167 was based on this so this was already merged as part of that.

@oscarwcl oscarwcl closed this Dec 17, 2023
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.

Lifetime of async_nats kv::Watch vs nats kv::Watch
2 participants