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 RequestParts::body_mut return &mut Option<B> #869

Merged
merged 3 commits into from
Mar 18, 2022

Conversation

davidpdrsn
Copy link
Member

So users can swap the body, which isn't possible with an Option<&mut B>.

@davidpdrsn davidpdrsn force-pushed the change-request-parts-body-mut branch from b9da0cc to c77e4b9 Compare March 18, 2022 14:54
@davidpdrsn davidpdrsn enabled auto-merge (squash) March 18, 2022 14:54
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
* Exclude sqlx example

Getting an ICE
https://github.com/tokio-rs/axum/runs/5602144413?check_suite_focus=true.
Will look into that later.

* actually it was nightly's fault

* and don't test things on nightly
@davidpdrsn davidpdrsn merged commit a0ae0c4 into main Mar 18, 2022
@davidpdrsn davidpdrsn deleted the change-request-parts-body-mut branch March 18, 2022 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants