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

Commits on Nov 12, 2019

  1. Refactor Rejection system

    - 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()`.
    seanmonstar committed Nov 12, 2019
    Copy the full SHA
    f61f3fd View commit details
    Browse the repository at this point in the history