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

Expose lifetimes in UrlEncodedSerializer #59

Merged
merged 1 commit into from
Jul 31, 2019
Merged

Expose lifetimes in UrlEncodedSerializer #59

merged 1 commit into from
Jul 31, 2019

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Jul 30, 2019

Forcing UrlEncodedSerializer to have a 'static lifetime is unnecessarily
restrictive and breaks a downstream dependency, reqwest. Thread a new
lifetime through to fix the problem.

Forcing UrlEncodedSerializer to have a 'static lifetime is unnecessarily
restrictive and breaks a downstream dependency, reqwest. Thread a new
lifetime through to fix the problem.
@benesch
Copy link
Contributor Author

benesch commented Jul 30, 2019

/cc @SimonSapin

@SimonSapin
Copy link
Contributor

Sounds reasonable. I took a shortcut with 'static when I mistakenly thought that UrlEncodedSerializer was not exposed in the public API of this crate, and saw that encoding_override was not used in the crate.

@benesch
Copy link
Contributor Author

benesch commented Jul 30, 2019

No worries! I suppose this is the kind of thing that would, in principle, be caught if url had shipped a v2.0 prerelease version, but a) I guess Cargo doesn't handle prereleases (?!) (rust-lang/cargo#2222), and b) it's unlikely that the prerelease chain would have continued far enough to have actually caught this.

@nox
Copy link
Owner

nox commented Jul 31, 2019

bors r+

Thanks for the quick reaction @benesch, I'll release 0.6.1 and yank 0.6.0.

bors bot added a commit that referenced this pull request Jul 31, 2019
59: Expose lifetimes in UrlEncodedSerializer r=nox a=benesch

Forcing UrlEncodedSerializer to have a 'static lifetime is unnecessarily
restrictive and breaks a downstream dependency, reqwest. Thread a new
lifetime through to fix the problem.

Co-authored-by: Nikhil Benesch <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jul 31, 2019

Build succeeded

@bors bors bot merged commit 31641af into nox:master Jul 31, 2019
@benesch benesch deleted the url-20 branch July 31, 2019 13:32
@benesch
Copy link
Contributor Author

benesch commented Jul 31, 2019

Fantastic! Thanks for the quick merge and release.

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.

3 participants