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

clean up multipart and field stream trait impl #2462

Merged
merged 1 commit into from Nov 25, 2021
Merged

Conversation

fakeshadow
Copy link
Contributor

PR Type

Refactor

PR Checklist

  • Documentation comments have been added / updated.
  • Format code with the latest stable rustfmt.
  • (Team) Label with affected crates and semver status.

Overview

Remove unnecessary indirection of InnerMultipart. Multipart is not Clone so there is no concurrent access to it in any form.
Reduce branches in <Multipart as Stream>::poll_next and <Field as Stream>::poll_next by always check happy path first and only check safety once per poll.

@fakeshadow fakeshadow added A-multipart project: actix-multipart B-semver-norelease change that does not require a release labels Nov 24, 2021
@robjtede robjtede merged commit 89c6d62 into master Nov 25, 2021
@robjtede robjtede deleted the multipart/clean_up branch November 25, 2021 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-multipart project: actix-multipart B-semver-norelease change that does not require a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants