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

Refactor/service request #1893

Merged
merged 11 commits into from
Jan 11, 2021
Merged

Refactor/service request #1893

merged 11 commits into from
Jan 11, 2021

Conversation

fakeshadow
Copy link
Contributor

PR Type

Refactor

PR Checklist

Check your PR fulfills the following:

  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • A changelog entry has been made for the appropriate packages.
  • Format code with the latest stable rustfmt

Overview

SerivceRequest woluld take ownership of Payload type.
This save the runtime cost whenever call into_parts/from_parts/from_request on ServiceRequest.
The return types would be simpler and smaller as no Error variant exists anymore.

@fakeshadow fakeshadow added A-web project: actix-web B-semver-major breaking change requiring a major version bump labels Jan 9, 2021
@robjtede robjtede requested review from a team January 9, 2021 11:56
src/service.rs Outdated Show resolved Hide resolved
@robjtede robjtede merged commit 57398c6 into master Jan 11, 2021
@robjtede robjtede deleted the refactor/service_request branch January 11, 2021 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web project: actix-web B-semver-major breaking change requiring a major version bump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants