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

Change DataRequest to be borrowed in BufferProvider #1416

Merged
merged 1 commit into from
Dec 19, 2021

Conversation

sffc
Copy link
Member

@sffc sffc commented Dec 19, 2021

Closes #1077

This is the opposite of what I proposed in #1077, because I found a use case for taking the request by reference: in a multi-provider, you may need to send the request to multiple sub-providers. That said, there are still use cases for taking ownership, so I'm still a bit inconclusive.

@Manishearth
Copy link
Member

Seems like we didn't really need ownership in the first place, which is good

@sffc sffc merged commit 355487a into unicode-org:main Dec 19, 2021
@sffc sffc deleted the datarequestborrow branch December 19, 2021 17:51
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.

Consider passing DataRequest, and other arguments, by value
2 participants