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 Rejection system #311

Merged
merged 1 commit into from Nov 12, 2019
Merged

Refactor Rejection system #311

merged 1 commit into from Nov 12, 2019

Conversation

seanmonstar
Copy link
Owner

  • Improved performance of "known" rejections, by not needing to store
    them as Box<dyn std::error::Error> in order to satisfy
    Rejection::cause().
  • reject::custom() no longer requires std::error::Error, just
    Reject + Debug. This should make it less annoying to construct new
    custom rejections.
  • Removed deprecated features:
    • Rejection::cause()
    • Rejection::into_cause()
    • Rejection::status()
    • Rejection::with()
    • Rejection::json()
    • impl Serialize for Rejection
    • reject::bad_request()
    • reject::forbidden()
    • reject::server_error()
  • Removed path::param2().

- Improved performance of "known" rejections, by not needing to store
  them as `Box<dyn std::error::Error>` in order to satisfy
  `Rejection::cause()`.
- `reject::custom()` no longer requires `std::error::Error`, just
  `Reject + Debug`. This should make it less annoying to construct new
  custom rejections.
- Removed deprecated features:
  - `Rejection::cause()`
  - `Rejection::into_cause()`
  - `Rejection::status()`
  - `Rejection::with()`
  - `Rejection::json()`
  - `impl Serialize for Rejection`
  - `reject::bad_request()`
  - `reject::forbidden()`
  - `reject::server_error()`
- Removed `path::param2()`.
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.

None yet

1 participant